aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/tests
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-21 22:28:57 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-21 22:28:57 +0100
commit1142588abda79d1b3c5a94449cf8074964df9228 (patch)
treeb499b79f0961fa15ceb8bced00559b223d5047b3 /pydis_site/apps/api/tests
parentFinish linting non-API modules (diff)
A whole bunch of docstrings.
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r--pydis_site/apps/api/tests/base.py6
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),