diff options
author | 2018-11-02 18:39:48 +0000 | |
---|---|---|
committer | 2018-11-02 18:39:48 +0000 | |
commit | 6c4666d36d2853a4ee8b9fd61086a1e4f1dd7776 (patch) | |
tree | 3ae797514bd5d13582075165936aaa503e38daef /api/tests | |
parent | Merge branch 'snake_idioms' into 'django' (diff) | |
parent | Added help text (diff) |
Merge branch 'special_snakes' into 'django'
Django - Special Snakes API
See merge request python-discord/projects/site!45
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 |