Skip to content

Commit

Permalink
update expected result name value
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Jan 26, 2024
1 parent 91a1350 commit c51c6b1
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions tests/unit/load/test_ckan_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ def test_ckanify_dcatus(self, dcatus_config):
harvest_source.get_harvest_records_as_id_hash()

expected_result = {
"name": "commitment-of-traders",
"name": "commitmentoftraders",
"owner_org": "test",
"identifier": "cftc-dc1",
"author": None,
"author_email": None,
"maintainer": "Harold W. Hild",
"maintainer_email": "hhild@CFTC.GOV",
"notes": "COT reports provide a breakdown of each Tuesday's open interest for futures and options on futures market in which 20 or more traders hold positions equal to or above the reporting levels established by CFTC",
Expand All @@ -59,29 +61,16 @@ def test_ckanify_dcatus(self, dcatus_config):
{"name": "open-interest"},
],
"extras": [
{
"key": "publisher_hierarchy",
"value": "U.S. Government > U.S. Commodity Futures Trading Commission",
},
{"key": "resource-type", "value": "Dataset"},
{
"key": "publisher",
"value": "U.S. Commodity Futures Trading Commission",
},
{"key": "accessLevel", "value": "public"},
{"key": "bureauCode", "value": "339:00"},
{"key": "identifier", "value": "cftc-dc1"},
{"key": "modified", "value": "R/P1W"},
{"key": "programCode", "value": "000:000"},
{
"key": "publisher",
"value": "U.S. Commodity Futures Trading Commission",
},
{
"key": "publisher_hierarchy",
"value": "U.S. Government > U.S. Commodity Futures Trading Commission",
},
{"key": "resource-type", "value": "Dataset"},
{
"key": "publisher",
"value": "U.S. Commodity Futures Trading Commission",
Expand All @@ -91,9 +80,8 @@ def test_ckanify_dcatus(self, dcatus_config):
"value": "{'accessLevel': 'public', 'bureauCode': ['339:00'], 'contactPoint': {'fn': 'Harold W. Hild', 'hasEmail': 'mailto:hhild@CFTC.GOV'}, 'describedBy': 'https://www.cftc.gov/MarketReports/CommitmentsofTraders/ExplanatoryNotes/index.htm', 'description': \"COT reports provide a breakdown of each Tuesday's open interest for futures and options on futures market in which 20 or more traders hold positions equal to or above the reporting levels established by CFTC\", 'distribution': [{'accessURL': 'https://www.cftc.gov/MarketReports/CommitmentsofTraders/index.htm'}], 'identifier': 'cftc-dc1', 'keyword': ['commitment of traders', 'cot', 'open interest'], 'modified': 'R/P1W', 'programCode': ['000:000'], 'publisher': {'name': 'U.S. Commodity Futures Trading Commission', 'subOrganizationOf': {'name': 'U.S. Government'}}, 'title': 'Commitment of Traders'}",
},
{"key": "harvest_source_name", "value": "test_harvest_source_name"},
{"key": "identifier", "value": "cftc-dc1"},
],
"author": None,
"author_email": None,
}

test_record = harvest_source.records["cftc-dc1"]
Expand Down

1 comment on commit c51c6b1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
harvester
   __init__.py00100% 
   harvest.py3485454 84%
   utils.py100100% 
TOTAL3585485% 

Tests Skipped Failures Errors Time
7 0 💤 0 ❌ 0 🔥 0.978s ⏱️

Please sign in to comment.