aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-07-16 20:23:26 +0200
committerGravatar Leon Sandøy <[email protected]>2020-07-16 20:23:26 +0200
commite2aabf684433af3b08079182179fcd964ead8a71 (patch)
treed4781259b4f6f0e28af7bad34445a2fabaffbf13 /pydis_site/apps/api
parentImprove some docstrings. (diff)
Fix some broken tests.
The test_utils_account.py tests were never running, because the folder they were in had no __init__.py file. The test_models.py file was failing because it had an outdated import of the ModelReprMixin, which has moved to a new file. https://github.com/python-discord/site/issues/305
Diffstat (limited to 'pydis_site/apps/api')
-rw-r--r--pydis_site/apps/api/tests/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/tests/test_models.py b/pydis_site/apps/api/tests/test_models.py
index b4754484..e0e347bb 100644
--- a/pydis_site/apps/api/tests/test_models.py
+++ b/pydis_site/apps/api/tests/test_models.py
@@ -3,13 +3,12 @@ from datetime import datetime as dt
from django.test import SimpleTestCase
from django.utils import timezone
-from ..models import (
+from pydis_site.apps.api.models import (
DeletedMessage,
DocumentationLink,
Infraction,
Message,
MessageDeletionContext,
- ModelReprMixin,
Nomination,
OffTopicChannelName,
OffensiveMessage,
@@ -18,6 +17,7 @@ from ..models import (
Tag,
User
)
+from pydis_site.apps.api.models.mixins import ModelReprMixin
class SimpleClass(ModelReprMixin):