From 59c35bbd7a477975ee924a232da0996dd810120e Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:25:32 -0400 Subject: [PATCH] test: Fix tests to use valid source_id --- tests/fixtures/complete_db.json | 6 +++--- tests/processors/test_create_collections.py | 2 +- tests/test_views.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/fixtures/complete_db.json b/tests/fixtures/complete_db.json index d288a516..bb3f07fe 100644 --- a/tests/fixtures/complete_db.json +++ b/tests/fixtures/complete_db.json @@ -3,7 +3,7 @@ "model": "process.collection", "pk": 1, "fields": { - "source_id": "portugal-releases", + "source_id": "portugal_releases", "data_version": "2020-12-29T09:22:08", "sample": false, "steps": [ @@ -30,7 +30,7 @@ "model": "process.collection", "pk": 2, "fields": { - "source_id": "portugal-releases", + "source_id": "portugal_releases", "data_version": "2020-12-29T09:22:08", "sample": false, "steps": [ @@ -57,7 +57,7 @@ "model": "process.collection", "pk": 3, "fields": { - "source_id": "portugal-releases", + "source_id": "portugal_releases", "data_version": "2020-12-29T09:22:08", "sample": false, "steps": [], diff --git a/tests/processors/test_create_collections.py b/tests/processors/test_create_collections.py index 77de6ea9..4c6369b6 100644 --- a/tests/processors/test_create_collections.py +++ b/tests/processors/test_create_collections.py @@ -30,7 +30,7 @@ def test_integrity_error(self): with self.assertRaises(ValueError) as e: create_collections( # Identification - "portugal-releases", + "portugal_releases", "2020-12-29 09:22:08", sample=False, # Steps diff --git a/tests/test_views.py b/tests/test_views.py index 6eb164fd..ee411057 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -57,7 +57,7 @@ def test_create_ok(self): response = self.client.post( f"{base_url}/", - {"source_id": "test2", "data_version": "2024-04-18 00:00:00", "upgrade": True, "compile": True}, + {"source_id": "test_test", "data_version": "2024-04-18 00:00:00", "upgrade": True, "compile": True}, ) self.assertEqual(response.status_code, 200)