Skip to content

Resolve name clash among test models#596

Merged
foarsitter merged 1 commit intojazzband:masterfrom
ProtixIT:status-test-model-naming
Mar 22, 2024
Merged

Resolve name clash among test models#596
foarsitter merged 1 commit intojazzband:masterfrom
ProtixIT:status-test-model-naming

Conversation

@mthuurne
Copy link
Copy Markdown
Contributor

In tests/models.py, there were two classes named StatusCustomManager: the first is an actual manager, the second a status model that uses a custom manager. The latter is renamed to CustomManagerStatusModel in this PR.

The name clash tripped up mypy, but is also confusing for human readers.

There were two classes named `StatusCustomManager`: the first is an
actual manager, the second a status model that uses a custom manager.
The latter is renamed to `CustomManagerStatusModel` in this commit.
@mthuurne mthuurne mentioned this pull request Mar 22, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.57%. Comparing base (1e481c4) to head (ed4f04f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #596   +/-   ##
=======================================
  Coverage   98.57%   98.57%           
=======================================
  Files           6        6           
  Lines         773      773           
=======================================
  Hits          762      762           
  Misses         11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@foarsitter foarsitter merged commit 6e722b5 into jazzband:master Mar 22, 2024
@mthuurne mthuurne deleted the status-test-model-naming branch March 25, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants