Skip to content

Commit

Permalink
test: Fix tests to use valid source_id
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jun 11, 2024
1 parent 90836b6 commit 59c35bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/fixtures/complete_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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": [
Expand All @@ -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": [],
Expand Down
2 changes: 1 addition & 1 deletion tests/processors/test_create_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 59c35bb

Please sign in to comment.