Skip to content

Commit

Permalink
updated test to use OsmUserFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
nifedara committed Apr 2, 2024
1 parent 7a47d11 commit 4aba08c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/tests/test_login_model.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from django.test import TestCase
from login.models import OsmUser

from .factories import OsmUserFactory


class TestLoginModels(TestCase):

def test_OsmUser_creation(self):
osm_user = OsmUser.objects.create(username="Test User", osm_id=123456)
osm_user = OsmUserFactory()

self.assertEqual(str(osm_user), "Test User")
self.assertEqual(osm_user.osm_id, 123456)

0 comments on commit 4aba08c

Please sign in to comment.