aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/tests
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r--pydis_site/apps/api/tests/test_models.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/pydis_site/apps/api/tests/test_models.py b/pydis_site/apps/api/tests/test_models.py
index 6011ba21..6a3ef085 100644
--- a/pydis_site/apps/api/tests/test_models.py
+++ b/pydis_site/apps/api/tests/test_models.py
@@ -7,7 +7,6 @@ from ..models import (
DeletedMessage,
DocumentationLink,
Infraction,
- LogEntry,
Message,
MessageDeletionContext,
ModelReprMixin,
@@ -33,26 +32,6 @@ class ReprMixinTests(SimpleTestCase):
self.assertEqual(repr(self.klass), expected)
-class LogEntryStringDunderTests(SimpleTestCase):
- def setUp(self):
- self.entry = LogEntry(
- application='bot',
- logger_name='bot.rules.antispam',
- timestamp=timezone.now(),
- level='debug',
- module='bot.rules.antispam',
- line=44,
- message="One day computers might become useful."
- )
-
- def test_str_shows_content(self):
- tokens = str(self.entry).split(' | ')
- _timestamp, app, level, message = tokens
- self.assertEqual(app, 'bot')
- self.assertEqual(level, 'DEBU'),
- self.assertEqual(message, "One day computers might become useful.")
-
-
class StringDunderMethodTests(SimpleTestCase):
def setUp(self):
self.objects = (