Skip to content

Commit

Permalink
added login model test
Browse files Browse the repository at this point in the history
  • Loading branch information
nifedara committed Mar 29, 2024
1 parent 60aba7d commit 556c162
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions backend/tests/test_login_model.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 556c162

Please sign in to comment.