aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/tests
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-10-11 19:53:21 +0200
committerGravatar Johannes Christ <[email protected]>2019-10-11 19:53:21 +0200
commit6fa19e09823680c93acd795c52f6f511a1ae9663 (patch)
tree28d949d11333753a68d3dca7ad4087da16e234d5 /pydis_site/apps/api/tests
parentPluralize properly. (diff)
Use multi-column output from Django.
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 = (