diff options
Diffstat (limited to 'api/tests')
-rw-r--r-- | api/tests/base.py | 2 | ||||
-rw-r--r-- | api/tests/test_models.py | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/api/tests/base.py b/api/tests/base.py index 395dc55c..5d8ccf8c 100644 --- a/api/tests/base.py +++ b/api/tests/base.py @@ -5,7 +5,7 @@ from rest_framework.test import APITestCase test_user, _created = User.objects.get_or_create( username='test', email='[email protected]', - password='testpass', # flake8: noqa - S106 + password='testpass', # noqa: S106 is_superuser=True, is_staff=True ) diff --git a/api/tests/test_models.py b/api/tests/test_models.py index af2ef5d5..91db2def 100644 --- a/api/tests/test_models.py +++ b/api/tests/test_models.py @@ -4,7 +4,8 @@ from ..models import ( DocumentationLink, Member, ModelReprMixin, OffTopicChannelName, Role, SnakeFact, SnakeIdiom, - SnakeName, Tag + SnakeName, SpecialSnake, + Tag ) @@ -32,6 +33,10 @@ class StringDunderMethodTests(SimpleTestCase): SnakeFact(fact='snakes are cute'), SnakeIdiom(idiom='snake snacks'), SnakeName(name='python', scientific='3'), + SpecialSnake( + name='Pythagoras Pythonista', + info='The only python snake that is born a triangle' + ), Role( id=5, name='test role', colour=0x5, permissions=0 |