aboutsummaryrefslogtreecommitdiffstats
path: root/api/tests/base.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-04 22:06:07 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-04 22:06:07 +0200
commite211cbf6dbbe3a28ef1276af69c4f387db52d596 (patch)
tree8bb441e8528056806e129c5d45b3770bbaa0fd31 /api/tests/base.py
parentAdd job tags. (diff)
Set up GitLab CI properly.
Diffstat (limited to 'api/tests/base.py')
-rw-r--r--api/tests/base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/api/tests/base.py b/api/tests/base.py
index 06f7233c..395dc55c 100644
--- a/api/tests/base.py
+++ b/api/tests/base.py
@@ -1,12 +1,11 @@
from django.contrib.auth.models import User
-from rest_framework.authtoken.models import Token
-from rest_framework.test import APIClient, APITestCase
+from rest_framework.test import APITestCase
test_user, _created = User.objects.get_or_create(
username='test',
- password='testpass',
+ password='testpass', # flake8: noqa - S106
is_superuser=True,
is_staff=True
)