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)