Closed AndrewEckart closed 3 years ago
Merging #103 (ed9166a) into develop (994b970) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## develop #103 +/- ##
========================================
Coverage 90.75% 90.75%
========================================
Files 46 46
Lines 1287 1287
Branches 107 107
========================================
Hits 1168 1168
Misses 106 106
Partials 13 13
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 994b970...ed9166a. Read the comment docs.
Thanks to #96, we can reduce the amount of boilerplate in the unit test suite considerably.
In general, tests now work as follows:
RabbitAdaptor
,LookupResultProcessor
, etc.), simply use theclient
fixture:RabbitAdaptor
in order to change its behavior or make assertions, use the appropriate mock adaptor fixture (or create a mock manually in the test function), and then pass it to theResourceTestBase._test_client
method as before:There's still quite a bit of duplicated code throughout the unit test suite that should be refactored to Pytest fixtures, but this is a good start.