diff options
author | 2019-10-19 20:18:40 +0200 | |
---|---|---|
committer | 2019-10-19 20:18:40 +0200 | |
commit | 9989170efe2f4afced40defc346179d046ebb9aa (patch) | |
tree | a45d27002f7f3702d6bc5c1941145e1d40f7ecb8 /pydis_site/utils | |
parent | Fix 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 'pydis_site/utils')
0 files changed, 0 insertions, 0 deletions