Skip to content

Commit

Permalink
add notification emails to harvest source update
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed May 14, 2024
1 parent 30a60b3 commit 88a8fe5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/unit/database/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,18 @@ def test_update_harvest_source(
interface.add_organization(organization_data)
source = interface.add_harvest_source(source_data_dcatus)

updates = {"name": "Updated Test Source"}
updates = {
"name": "Updated Test Source",
"notification_emails": ["example@gmail.com", "another@yahoo.com"],
}

updated_source = interface.update_harvest_source(source.id, updates)
assert updated_source is not None
assert updated_source["name"] == updates["name"]
assert updated_source["notification_emails"] == [
"example@gmail.com",
"another@yahoo.com",
]

def test_delete_harvest_source(
self, interface, organization_data, source_data_dcatus
Expand Down

1 comment on commit 88a8fe5

@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__.py50100% 
   ckan_utils.py11366 95%
   exceptions.py420100% 
   harvest.py2374141 83%
   logger_config.py10100% 
   utils.py791010 87%
TOTAL4775788% 

Tests Skipped Failures Errors Time
51 0 💤 0 ❌ 0 🔥 4.666s ⏱️

Please sign in to comment.