Closed rebeccacremona closed 11 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
c4527d4
) 68.62% compared to head (ee508f6
) 68.89%. 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.
See ENG-415.
This PR refactors test_capture_job.py:
a) to use pytest fixtures powered by factory boy instead of our json fixtures
b) to use standard pytest syntax instead of the older unittest-style syntax
This was easy, because I basically already went through this exercise in https://github.com/harvard-lil/perma-capture/commit/b2fe7addb5c4d8c19769e4b552516726b3829761 and related commits, when building the prototype capture service.
I hope to be able to reuse a lot of that work (as intended), as this refactoring project proceeds!
Reviewing
The unified diff is very hard to read, but I think if you click through the individual commits, you'll be able to easily see at a glance that the tests haven't been changed.