aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-10-19 20:18:40 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2019-10-19 20:18:40 +0200
commit9989170efe2f4afced40defc346179d046ebb9aa (patch)
treea45d27002f7f3702d6bc5c1941145e1d40f7ecb8 /manage.py
parentFix indentation and missing word in docstring (diff)
Make test less fragile and improve test name
The `test_returns_400_for_active_infractions_of_type_that_cannot_be_ active` test relied on the order in which the validation was done since it contained incompatible combinations of arguments. The test has been changed to make sure the data is valid except for the thing we actually want to test. I have also tried to improve the name of the test that tests the `test_unique_constraint_accepts_active_infraction_after_inactive_ infraction` test. It now includes the logic of what it does, but not the entire name of the test it's testing.
Diffstat (limited to 'manage.py')
0 files changed, 0 insertions, 0 deletions