Skip to main content

咚咚家族核心库 - 共享基础设施

Project description

dong-core

咚咚家族核心库 - 共享基础设施。

开发状态

项目正在开发中,以下模块待实现:

  • output/formatter.py - JSON 输出装饰器
  • errors/exceptions.py - 错误类型
  • dates/utils.py - 日期处理工具
  • testing/fixtures.py - 测试 fixtures

测试

测试框架已准备就绪,等待模块实现完成后编写具体测试。

运行测试

# 运行所有测试
pytest

# 运行单元测试
pytest tests/unit/

# 运行带覆盖率的测试
pytest --cov=dong --cov-report=html

# 查看覆盖率报告
open htmlcov/index.html

测试文件结构

tests/
├── __init__.py
├── conftest.py          # pytest 配置和共享 fixtures
├── data/                # 测试数据
├── unit/                # 单元测试
│   ├── test_formatter.py
│   ├── test_exceptions.py
│   ├── test_dates.py
│   └── test_fixtures.py
└── integration/         # 集成测试
    └── test_integration.py

覆盖率目标

  • formatter.py: 90%+
  • exceptions.py: 100%
  • dates.py: 90%+
  • fixtures.py: 80%+
  • 整体: >= 80%

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dong_core-0.2.2.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dong_core-0.2.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file dong_core-0.2.2.tar.gz.

File metadata

  • Download URL: dong_core-0.2.2.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dong_core-0.2.2.tar.gz
Algorithm Hash digest
SHA256 76fa77c7396268a12bd6454c9e3194b3522bea8af929dd10fb837479bfe68ec2
MD5 733333c0f96cecf769fce2332fe7314f
BLAKE2b-256 5d3c281a578f9c914e33d2ed38f91495296f7504bc61708004c421e723ae9f31

See more details on using hashes here.

File details

Details for the file dong_core-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: dong_core-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dong_core-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a0199ae95708c12ba21340dbe610bfacd45d65c58794bcd0ac5c8616bbc354e
MD5 00a6db9beeb822058e074d8306062576
BLAKE2b-256 19d98b12d53c5e38494e88c9b144a86881775bfdd38243cc4fd5ff0ae87e71da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page