Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
btylerburton committed Dec 20, 2023
1 parent e86067a commit 5970ee7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion harvester/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ def download_waf(files):
return output


def extract(harvest_source) -> list:
def extract(harvest_source):
"""Extracts all records from a harvest_source"""
logger.info("Hello from harvester.extract()")
logger.info(harvest_source["source_type"])

datasets = []

if harvest_source["source_type"] == "datajson":
logger.info("inside branch")
return download_dcatus_catalog(harvest_source["url"])

return datasets

1 comment on commit 5970ee7

@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__.py100100% 
   compare.py50100% 
   extract.py521111 79%
   load.py8522 98%
   transform.py50100% 
harvester/utils
   __init__.py20100% 
   json.py40100% 
harvester/validate
   __init__.py20100% 
   dcat_us.py2433 88%
TOTAL1891692% 

Tests Skipped Failures Errors Time
24 0 💤 0 ❌ 0 🔥 34.405s ⏱️

Please sign in to comment.