咚咚家族核心库 - 共享基础设施
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.7.0.tar.gz
(25.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dong_core-0.7.0-py3-none-any.whl
(20.4 kB
view details)
File details
Details for the file dong_core-0.7.0.tar.gz.
File metadata
- Download URL: dong_core-0.7.0.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8621712666c0c13eb2ee4c22c4c7957f4dbc0c45ff5462427a410a8525405d90
|
|
| MD5 |
7bb4e968c684f2dc0835500eff278aa7
|
|
| BLAKE2b-256 |
6c3f5dca3cdf1c8f2a63c1e0fd921dff9f706ac2bf9ba7d9a44cac6a8fe0e966
|
File details
Details for the file dong_core-0.7.0-py3-none-any.whl.
File metadata
- Download URL: dong_core-0.7.0-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
938b055bb5c77d88d2d6c3f08564fc03240b3cff10840da17d3a8787b260da92
|
|
| MD5 |
ba645b7c5c57d81f736048cc69e9779c
|
|
| BLAKE2b-256 |
d112a0c4308bdd2ea54a0ceeb27df60b4adf1ac5c46f5f3eab391ab52d23fc18
|