Skip to content

Commit

Permalink
added dataset creation test
Browse files Browse the repository at this point in the history
  • Loading branch information
nifedara committed Apr 2, 2024
1 parent 1a9b419 commit 7a47d11
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions backend/tests/test_core_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from django.test import TestCase

from .factories import DatasetFactory, OsmUserFactory


class TestCoreModels(TestCase):

def test_dataset_creation(self):
user = OsmUserFactory(username="Test User 2", osm_id=123)
dataset = DatasetFactory(created_by=user)

self.assertEqual(dataset.name, "Test Dataset")
self.assertEqual(dataset.created_by, user)

0 comments on commit 7a47d11

Please sign in to comment.