| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | | Fixed migration nr 51 `down` function object getting | 2020-04-21 | -1/+1 | ||
| | | | | |||||
| | * | | Fixed migration 51 file end (`create_news_setting`) | 2020-04-21 | -1/+0 | ||
| | | | | |||||
| | * | | Created migration fo Python News feature on bot | 2020-04-20 | -0/+26 | ||
| | | | | |||||
| | * | | Added `news` to allowed bot setting names. | 2020-04-20 | -0/+1 | ||
| | |/ | |||||
| | * | Add more pre-commit hooks | 2020-03-04 | -21/+21 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes Changes made to comply with new hooks: * Remove trailing whitespaces * Remove some useless noqa annotations * Specify errors for noqa annotations * Add missing newlines at end of files See: python-discord/organisation#138 | ||||
| | * | Merge branch 'master' into deleted-messages-visible-line-endings | 2020-03-01 | -11/+323 | ||
| | |\ | |||||
| | | * | Fix migration dependency | 2020-02-08 | -2/+2 | ||
| | | | | |||||
| | | * | Merge branch 'master' into fix-infraction-validator | 2020-02-08 | -4/+248 | ||
| | | |\ | |||||
| | | | * | Merge branch 'master' into reminder-tests | 2020-02-03 | -5/+382 | ||
| | | | |\ | |||||
| | | | * | | Improve robustness with regard to ordering | 2020-02-03 | -2/+2 | ||
| | | | | | | |||||
| | | | * | | Add second reminder to list tests, implement `test_filter_field` test | 2020-02-03 | -6/+24 | ||
| | | | | | | |||||
| | | | * | | Improve test failure clarity (reduce unhandled exceptions in assertions) | 2020-02-03 | -1/+4 | ||
| | | | | | | |||||
| | | | * | | Improve test failure clarity (reduce unhandled exceptions in assertions) | 2020-02-03 | -2/+2 | ||
| | | | | | | |||||
| | | | * | | Fix unnecessary kwarg syntax | 2020-02-03 | -2/+2 | ||
| | | | | | | |||||
| | | | * | | Add ReminderListTests | 2020-02-02 | -0/+37 | ||
| | | | | | | |||||
| | | | * | | Improve deletion test (asserting that deleted record no longer exists) | 2020-02-02 | -0/+1 | ||
| | | | | | | |||||
| | | | * | | Rework test_patch_updates_record to avoid list API endpoint | 2020-02-02 | -4/+1 | ||
| | | | | | | |||||
| | | | * | | Rework ReminderCreationTests | 2020-02-02 | -14/+15 | ||
| | | | | | | |||||
| | | | * | | Tiny linting edit | 2020-01-13 | -1/+1 | ||
| | | | | | | |||||
| | | | * | | Implement ReminderUpdateTests | 2020-01-13 | -0/+31 | ||
| | | | | | | |||||
| | | | * | | Implement ReminderDeletionTests | 2020-01-13 | -1/+32 | ||
| | | | | | | |||||
| | | | * | | Implement ReminderCreationTests | 2020-01-13 | -0/+35 | ||
| | | | | | | |||||
| | | | * | | Implement EmptyDatabaseReminderAPITests | 2020-01-07 | -0/+15 | ||
| | | | | | | |||||
| | | | * | | Instantiate test_reminders module; implement UnauthedReminderAPITests | 2020-01-07 | -0/+27 | ||
| | | | | | | |||||
| | | * | | | Ignore coverage for infraction serializer unexpectedly succeeding | 2019-12-19 | -2/+2 | ||
| | | | | | | |||||
| | | * | | | Add tests for missing active field of infractions | 2019-12-19 | -0/+28 | ||
| | | | | | | |||||
| | | * | | | Remove default value from the active field of infractions | 2019-12-19 | -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. | ||||
| | | * | | | Output errors more clearly for infraction serializer test failures | 2019-12-18 | -6/+10 | ||
| | | | | | | |||||
| | | * | | | Test that new infractions pass validation | 2019-12-18 | -0/+14 | ||
| | | | | | | |||||
| | | * | | | Add fixtures to create infractions in serializer tests | 2019-12-18 | -16/+18 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | The fixtures are invoked manually because not all cases may need the same infractions. | ||||
| | | * | | | Add regression test for the UniqueTogetherValidator fix | 2019-12-18 | -0/+41 | ||
| | | | | | | |||||
| | | * | | | Infractions: fix UniqueTogetherValidator incorrectly failing | 2019-12-18 | -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. | ||||
| | * | | | | Merge branch 'master' into deleted-messages-visible-line-endings | 2020-02-02 | -34/+1940 | ||
| | |\ \ \ \ | | | |_|/ | | |/| | | |||||
| | | * | | | Update migration dependency to the latest merged | 2020-01-13 | -1/+1 | ||
| | | | | | | |||||
| | | * | | | Merge branch 'master' into bot#549-show-attachments-staff | 2020-01-12 | -2/+331 | ||
| | | |\| | | |||||
| | | | * | | Merge pull request #300 from python-discord/#222-offensive-msg-autodeletion | 2019-12-14 | -1/+330 | ||
| | | | |\ \ | | | | |/ | | | |/| | Create offensive message model for python-discord/bot#617 | ||||
| | | | | * | Rename route /bot/offensive-message to /bot/offensive-messages | 2019-12-14 | -4/+4 | ||
| | | | | | | |||||
| | | | | * | Use direct database test intead of relying on GET | 2019-11-16 | -3/+3 | ||
| | | | | | | |||||
| | | | | * | Write list test for the offensive message model | 2019-11-16 | -0/+39 | ||
| | | | | | | |||||
| | | | | * | Merge branch 'master' into #222-offensive-msg-autodeletion | 2019-11-16 | -24/+488 | ||
| | | | | |\ | |||||
| | | | | * | | Make use of subtests | 2019-11-12 | -20/+20 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Sebastiaan Zeeff <[email protected]> | ||||
| | | | | * | | Change setUpTestData to use aware datetime | 2019-11-11 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | This remove a warning during test run | ||||
| | | | | * | | Add deletion tests | 2019-11-11 | -0/+24 | ||
| | | | | | | | |||||
| | | | | * | | Add tests to make sure the view return 405 for PATCH and PUT requests | 2019-11-11 | -0/+22 | ||
| | | | | | | | |||||
| | | | | * | | Make sure the API return the appropriate response. | 2019-11-10 | -0/+9 | ||
| | | | | | | | |||||
| | | | | * | | Merge master migration files | 2019-11-07 | -2/+2 | ||
| | | | | | | | |||||
| | | | | * | | Merge branch 'master' into #222-offensive-msg-autodeletion | 2019-11-07 | -36/+1087 | ||
| | | | | |\ \ | |||||
| | | | | * | | | Block PATCH and PUT methods | 2019-11-07 | -3/+2 | ||
| | | | | | | | | |||||
| | | | | * | | | Fix copy pasting mistake | 2019-11-07 | -1/+1 | ||
| | | | | | | | | |||||
| | | | | * | | | Squash down migration files | 2019-11-07 | -36/+3 | ||
| | | | | | | | | |||||