From 556c1625514b7106cad67b2ebe3ccf1c241f02f6 Mon Sep 17 00:00:00 2001 From: Oluwanifemi Daramola <76186151+nifedara@users.noreply.github.com> Date: Fri, 29 Mar 2024 23:51:59 +0100 Subject: [PATCH] added login model test --- backend/tests/test_login_model.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 backend/tests/test_login_model.py diff --git a/backend/tests/test_login_model.py b/backend/tests/test_login_model.py new file mode 100644 index 00000000..3f63d864 --- /dev/null +++ b/backend/tests/test_login_model.py @@ -0,0 +1,11 @@ +from django.test import TestCase +from login.models import OsmUser + + +class TestLoginModels(TestCase): + + def test_OsmUser_creation(self): + osm_user = OsmUser.objects.create(username="Test User", osm_id=123456) + + self.assertEqual(str(osm_user), "Test User") + self.assertEqual(osm_user.osm_id, 123456)