diff --git a/tests/unit/database/test_db.py b/tests/unit/database/test_db.py index 7f20949a..404c4ea0 100644 --- a/tests/unit/database/test_db.py +++ b/tests/unit/database/test_db.py @@ -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