aboutsummaryrefslogtreecommitdiffstats
path: root/.github (unfollow)
Commit message (Collapse)AuthorLines
2019-12-19Ignore coverage for infraction serializer unexpectedly succeedingGravatar MarkKoz-2/+2
2019-12-19Add tests for missing active field of infractionsGravatar MarkKoz-0/+28
2019-12-19Remove default value from the active field of infractionsGravatar MarkKoz-10/+37
Due to the active field being specified in the UniqueTogetherValidator, the field is implicitly required. Typically default values are excluded from this restriction but in this case some infraction types must always be False. It's easier and makes more sense to require the active field explicitly rather than to write logic in the serializer which is conditional on the type of infractions.
2019-12-18Output errors more clearly for infraction serializer test failuresGravatar MarkKoz-6/+10
2019-12-18Test that new infractions pass validationGravatar MarkKoz-0/+14
2019-12-18Add fixtures to create infractions in serializer testsGravatar MarkKoz-16/+18
The fixtures are invoked manually because not all cases may need the same infractions.
2019-12-18Add regression test for the UniqueTogetherValidator fixGravatar MarkKoz-0/+41
2019-12-18Infractions: fix UniqueTogetherValidator incorrectly failingGravatar MarkKoz-1/+1
The active infractions queryset only gets filtered by the fields specified. This meant that if the same user and type had another infraction instance which was active, the validator would fail. The validator assumes failure if it sees any items still in the queryset after filtering. By including the active field in the validator, the queryset will be filtered by the active field too. In the case described above, the queryset would end up empty because a no infractions which are active will ever match an active=False filter.
2019-12-14Rename route /bot/offensive-message to /bot/offensive-messagesGravatar Akarys42-4/+4
2019-12-09Add 1em bottom margin to wiki markdown codeblocks.Gravatar scragly-0/+5
Any text following the end of a codeblock in the wiki would very closely hug the codeblock, impacting readability and giving poor structure to page content. This adds in an appropriate margin to the bottom of codeblocks to give a fair buffer that matches typical paragraph spacing.
2019-11-20Correct the discord tos link in rules endpoint.Gravatar scragly-1/+1
2019-11-16Use direct database test intead of relying on GETGravatar Akarys42-3/+3
2019-11-16Write list test for the offensive message modelGravatar Akarys42-0/+39
2019-11-12Make use of subtestsGravatar Akarys42-20/+20
Co-authored-by: Sebastiaan Zeeff <[email protected]>
2019-11-12Add the `--debug` flag to the start commandGravatar Matteo Bertucci-1/+1
2019-11-11Add pipenv run start commandGravatar Akarys42-0/+1
2019-11-11Change setUpTestData to use aware datetimeGravatar Akarys42-2/+2
This remove a warning during test run
2019-11-11Add deletion testsGravatar Akarys42-0/+24
2019-11-11Add tests to make sure the view return 405 for PATCH and PUT requestsGravatar Akarys42-0/+22
2019-11-10Make sure the API return the appropriate response.Gravatar Akarys42-0/+9
2019-11-07Merge master migration filesGravatar Akarys42-2/+2
2019-11-07Block PATCH and PUT methodsGravatar Akarys42-3/+2
2019-11-07Fix copy pasting mistakeGravatar Akarys42-1/+1
2019-11-07Squash down migration filesGravatar Akarys42-36/+3
2019-11-03Resolve migration merge conflictsGravatar Sebastiaan Zeeff-8/+8
Since other pull requests were merged that also included migrations for the API app, this PR needed to be updated to avoid conflicts in the migration history. In addition, the test files contained names of specific migration files that needed to be updated to the correct names after the merge resolution.
2019-10-26Write tests for the offensive message model.Gravatar Akarys42-3/+70
2019-10-26Delete unnecessary search filterGravatar Akarys42-4/+0
2019-10-26Change docs to use datetime.datetime instead of datetime.dateGravatar Akarys42-2/+2
2019-10-26Add the offensive message model to the admin panelGravatar Akarys42-0/+6
2019-10-26Add new rules.Gravatar scragly-32/+18
2019-10-25Fix type error in the future date validatorGravatar Akarys42-1/+1