Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev] Add pytest-cov to improve DX #458

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased](https://github.com/model-bakers/model_bakery/tree/main)

### Added
- [dev] Add `pytest-cov` to improve DX

### Changed
- Remove unnecessary casting to string methods random_gen.gen_slug and random_gen.gen_string
- Remove unnecessary casting to string methods `random_gen.gen_slug` and `random_gen.gen_string`

### Removed

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ test = [
"coverage",
"pillow",
"pytest",
"pytest-cov",
"pytest-django",
"black",
"ruff",
Expand Down Expand Up @@ -92,7 +93,7 @@ ignore_missing_imports = true
disallow_untyped_calls = true

[tool.pytest.ini_options]
addopts = "--tb=short -rxs --nomigrations"
addopts = "--cov --tb=short -rxs --nomigrations"

[tool.ruff]
target-version = "py38"
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ deps =
coverage
pillow
pytest
pytest-cov
pytest-django
django32: Django==3.2
django41: Django>=4.1,<4.2
Expand Down