aboutsummaryrefslogtreecommitdiffstats
path: root/api/tests (follow)
Commit message (Collapse)AuthorAgeLines
* [#176] Redo project layoutGravatar Gareth Coles2019-04-05-1390/+0
|
* Add nomination API test cases.Gravatar Johannes Christ2019-02-18-0/+41
|
* Add unit test for the new validator.Gravatar Johannes Christ2019-02-18-1/+12
|
* Add a bot setting model.Gravatar Johannes Christ2019-02-07-8/+8
|
* Add an API endpoint for reminders.Gravatar Johannes Christ2019-01-22-4/+14
|
* Account for broken import sorting on Azure.Gravatar Johannes Christ2019-01-20-1/+1
|
* Add a test case for the message deletion endpoint.Gravatar Johannes Christ2019-01-20-0/+43
|
* Do not rely on hardcoded ID.Gravatar Johannes Christ2019-01-20-1/+1
|
* Merge branch 'django' into django+add-logs-apiGravatar Johannes Christ2019-01-20-13/+416
|\
| * Use proper test case name.Gravatar Johannes Christ2019-01-09-1/+1
| |
| * Add a view returning the server rules.Gravatar Johannes Christ2019-01-09-0/+35
| | | | | | | | Closes #171.
| * Fixed merge conflictsGravatar ImportErr2018-12-08-6/+376
| |\
| | * Django - Add Infractions API (#149)Gravatar Mark2018-11-29-6/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add Infraction model and serialiser The model in not finalised. * fix mix up of serialiser fields * remove explicit id field and add foreign keys * remove unused import * disallow null for user * add view set and route * fix model and create migration * fix typo choice => choices * specify names for reverse accessors for User FKs * add django-filter * add filters to view set * add string dunder method to model * add list/retrieve tests * make reason nullable * add creation tests * remove support for PUT and DELETE * add support for PATCH * assert timestamps using strings rather than datetimes This is done to keep 3.6 support; datetime.fromisoformat() is 3.7+ * assert inserted_at * add unauthenticated tests * add bad value tests for list filters and retrieve * remove prefetch cache invalidation * make __str__ more descriptive * add field validation & remove note type * add tests for field validation * fix coverage for Infraction string dunder test * fix coverage (for sure this time) * return 400 for partial updates with frozen fields * add expanded serialiser and endpoints * test expanded endpoints * remove extra retrieve call * remove unnecessary try-finally blocks * remove extra blank line * document endpoints (except expanded) * document expanded routes * fix wrong routes in docstring (/infraction -> /infractions) * make merge migration
| * | Renamed class in test_usersGravatar ImportErr2018-12-01-1/+1
| |/
* | Merge branch 'django' into django+add-logs-api.Gravatar Johannes Christ2018-11-25-24/+28
|\|
| * Django - Add Support for Storing Users Not in Guild (#150)Gravatar Mark2018-11-19-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | * rename Member to User * add boolean field to distinguish users in our server * mark roles as not required * fix import order lint errors * fix order of model registration
* | Add the `DeletedMessage` model.Gravatar Johannes Christ2018-11-18-6/+24
| |
* | Add the `channel_id` field to messages.Gravatar Johannes Christ2018-11-18-0/+1
| |
* | Add the `MessageDeletionContext` model.Gravatar Johannes Christ2018-11-18-5/+14
| |
* | Add the abstract `Message` model.Gravatar Johannes Christ2018-11-18-1/+11
|/
* Use proper `noqa` comment.Gravatar Johannes Christ2018-10-26-1/+1
|
* Fixed lintingGravatar Hasan-Ahmad2018-10-25-2/+3
|
* code presentasion and help text on modelsGravatar Hasan-Ahmad2018-10-25-1/+2
|
* Fixed lintingGravatar Hasan-Ahmad2018-10-25-1/+2
|
* Added special snakes apiGravatar Hasan-Ahmad2018-10-22-1/+3
|
* Fixed linting issues, added SnakeIdioms to test_models.pyGravatar Hasan-Ahmad2018-10-20-1/+4
|
* added SnakeName to setUpGravatar Hasan-Ahmad2018-10-15-0/+1
|
* Added SnakeFact importGravatar Hasan-Ahmad2018-10-15-1/+1
|
* Use proper keyword argument.Gravatar Johannes Christ2018-09-23-1/+1
|
* Add missing test.Gravatar Johannes Christ2018-09-23-1/+5
|
* Add allowance tests.Gravatar Johannes Christ2018-09-23-0/+70
|
* Exclude `admin.py` modules.Gravatar Johannes Christ2018-09-23-0/+4
|
* Remove `hypothesis`.Gravatar Johannes Christ2018-09-23-27/+12
|
* Add embed validation.Gravatar Johannes Christ2018-09-23-0/+143
|
* Add `__str__` to all API models.Gravatar Johannes Christ2018-09-21-1/+27
|
* Add `__repr__` to all models.Gravatar Johannes Christ2018-09-21-0/+17
|
* Set up GitLab CI properly.Gravatar Johannes Christ2018-09-04-11/+8
|
* Merge branch 'django+add-users-api' into djangoGravatar Johannes Christ2018-09-01-0/+118
|\
| * Add the member viewset.Gravatar Johannes Christ2018-09-01-0/+118
| |
* | Add tests for untested branches.Gravatar Johannes Christ2018-09-01-2/+19
|/
* Add support for deleting off-topic-channel names.Gravatar Johannes Christ2018-09-01-0/+29
|
* Add a creation route.Gravatar Johannes Christ2018-09-01-9/+48
|
* Add a test for the off-topic channel name API.Gravatar Johannes Christ2018-09-01-0/+75
|
* Add support for `create` & `destroy`.Gravatar Johannes Christ2018-08-16-0/+89
|
* Make test user superuser.Gravatar Johannes Christ2018-08-16-3/+13
|
* Add a simple `list` / `retrieve` documentation link endpoint.Gravatar Johannes Christ2018-08-16-0/+72
|
* Add a `HealthcheckView`.Gravatar Johannes Christ2018-08-16-0/+16
|
* Small documentation fixes.Gravatar Johannes Christ2018-08-16-1/+1
|
* Support `get_all` query parameter.Gravatar Johannes Christ2018-08-16-7/+20
|
* Add tests for the snake name listing API.Gravatar Johannes Christ2018-08-16-5/+42
|