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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pydis_site/apps/api/tests/test_models.py b/pydis_site/apps/api/tests/test_models.py
index 456ac408..0804384c 100644
--- a/pydis_site/apps/api/tests/test_models.py
+++ b/pydis_site/apps/api/tests/test_models.py
@@ -187,3 +187,9 @@ class StringDunderMethodTests(SimpleTestCase):
"Nomination of Hemlock's Cat#7777 (active)",
str(self.nomination)
)
+
+
+class UserTests(SimpleTestCase):
+ def test_str_without_discriminator(self) -> None:
+ user = User(name="lemonfannumber1")
+ self.assertEqual(str(user), "lemonfannumber1")