diff options
author | 2019-04-24 20:14:15 +0200 | |
---|---|---|
committer | 2019-04-24 20:14:15 +0200 | |
commit | dd9723705d0b41363c0941b02c4ee5d3b2bafe32 (patch) | |
tree | e0bfe8cd82087ed1b9d2dff6249282d13c790a74 /pydis_site/apps/api/tests | |
parent | Merge pull request #202 from gdude2002/django+200/wiki (diff) | |
parent | Address review (diff) |
Merge pull request #215 from gdude2002/django+192/flake8-docstrings
[#192] Flake8-docstrings
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r-- | pydis_site/apps/api/tests/base.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pydis_site/apps/api/tests/base.py b/pydis_site/apps/api/tests/base.py index 8f8ace56..37459f70 100644 --- a/pydis_site/apps/api/tests/base.py +++ b/pydis_site/apps/api/tests/base.py @@ -13,8 +13,10 @@ test_user, _created = User.objects.get_or_create( class APISubdomainTestCase(APITestCase): """ - Configures the test client to use the proper subdomain - for requests and forces authentication for the test user. + Configures the test client. + + This ensures that it uses the proper subdomain for requests, and forces authentication + for the test user. The test user is considered staff and superuser. If you want to test for a custom user (for example, to test model permissions), |