-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cc3faf
commit 2c1ec64
Showing
4 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,47 @@ | ||
import pytest | ||
import pytest | ||
|
||
@pytest.fixture | ||
|
||
@pytest.fixture | ||
def create_test_harvest_source(): | ||
return { | ||
"id": "7b295ba9-137e-4d0d-8295-3abac2849a0e", | ||
"name": "test_harvest_source", | ||
"notification_emails": [ "[email protected]", "[email protected]" ], | ||
"notification_emails": ["[email protected]", "[email protected]"], | ||
"organization_name": "example", | ||
"frequency": "weekly", | ||
"config": { "test": 1, "example": True, "something": [ "a", "b" ] }, | ||
"urls": [ "https://path_to_resource/example.json", "https://path_to_resource/another_example.json"], | ||
"schema_validation_type": "dcatus" | ||
"config": {"test": 1, "example": True, "something": ["a", "b"]}, | ||
"urls": [ | ||
"https://path_to_resource/example.json", | ||
"https://path_to_resource/another_example.json", | ||
], | ||
"schema_validation_type": "dcatus", | ||
} | ||
|
||
@pytest.fixture | ||
|
||
@pytest.fixture | ||
def create_test_harvest_job(): | ||
return { | ||
"id": "c8837a2f-bd0b-4333-82f5-0b64f126da34", | ||
"source_id": "7b295ba9-137e-4d0d-8295-3abac2849a0e", | ||
"status": "INACTIVE", | ||
} | ||
|
||
@pytest.fixture | ||
|
||
@pytest.fixture | ||
def create_test_harvest_record(): | ||
return { | ||
"job_id": "c8837a2f-bd0b-4333-82f5-0b64f126da34", | ||
"source_id": "7b295ba9-137e-4d0d-8295-3abac2849a0e", | ||
"status": "ACTIVE", | ||
"s3_path": "https://bucket-name.s3.region-code.amazonaws.com/key-name" | ||
"s3_path": "https://bucket-name.s3.region-code.amazonaws.com/key-name", | ||
} | ||
|
||
|
||
@pytest.fixture | ||
def create_test_harvest_error(): | ||
return { | ||
"job_id": "c8837a2f-bd0b-4333-82f5-0b64f126da34", | ||
"record_id": "b5195975-03db-4cf8-b373-52035f0f428f", | ||
"record_reported_id": "example", | ||
"severity": "CRITICAL" | ||
} | ||
"severity": "CRITICAL", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2c1ec64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report