Closed rebeccacremona closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
69fb92e
) 69.83% compared to head (debdc0b
) 70.40%. Report is 3 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
In #3415, I began refactoring our python test suite to:
a) use pytest fixtures powered by factory boy instead of our json fixtures
b) use standard pytest syntax instead of the older unittest-style syntax
This PR continues the effort, picking off some more of the easier-to-convert modules.
The entirety of
test_email
,test_utils
,test_cloudflare_cache
,test_celery_tasks
, andtest_urls
are converted to pytest syntax, and are mostly (but not entirely) updated to use pytest fixtures: I kicked the can in a couple places on the more complex ones, figuring they will be easier once we have a richer library of pytest fixtures prepared.A big chunk of
test_models
is also converted and switched over to pytest fixtures. There is still lots to do, but I think this PR converted every test that involves Perma Payments. @kilbergr is going to take the lead on coverting the rest of that file, in a series of upcoming PRs π π.The diffs are, again, hard to read, but: none of the tests are materially changed: all the same assertions are made, etc. The only thing that has been changed is syntax.