aboutsummaryrefslogtreecommitdiffstats
path: root/tests/base.py (unfollow)
Commit message (Collapse)AuthorLines
2020-06-13Incidents tests: move `mock_404` into module namespaceGravatar kwzrd-5/+6
This will be useful for others tests as well.
2020-06-13Incidents tests: write tests for `archive`Gravatar kwzrd-2/+63
2020-06-13Incidents tests: set up base class for `Incidents`Gravatar kwzrd-2/+21
For cleanliness, I've decided to make a separate class for each method. Since most tests will want to have an `Incident` instance ready, they can inherit the `setUp` from `TestIncidents`, which does not make any assertions on its own.
2020-06-13Incidents tests: improve mock `Signal` name & move defGravatar kwzrd-6/+6
Let's make it clear that this is our own mock. We also move the definition to the top of the module.
2020-06-13Incidents tests: use our own helper mocksGravatar kwzrd-16/+14
No reason to build own MagicMocks as we already have helpers that more accurately mimic the mocked behaviour.
2020-06-12Incidents tests: write tests for module-level helpersGravatar kwzrd-0/+135