Skip to content

Commit

Permalink
update prov test
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Nov 14, 2024
1 parent a9b724c commit 09ce30c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rook/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def start(self, workflow=False):
DCTERMS_SOURCE: "https://cds.climate.copernicus.eu",
},
)
rook_provider = self.doc.agent(
provider = self.doc.agent(
ROOCS["Provider"],
{
prov.PROV_TYPE: PROV_PROVIDER,
Expand All @@ -82,7 +82,7 @@ def start(self, workflow=False):
},
)
self.doc.wasAttributedTo(self.sw_rook, project_cds)
self.doc.wasAttributedTo(self.sw_rook, rook_provider)
self.doc.wasAttributedTo(self.sw_rook, provider)
self.sw_clisops = self.doc.agent(
ROOCS[f"clisops_v{clisops_version}"],
{
Expand Down
6 changes: 6 additions & 0 deletions tests/test_provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def test_prov_simple(tmpdir):
assert (
doc["agent"]["roocs:C3S_CDS"]["prov:label"] == "Copernicus Climate Data Store"
)
assert (
doc["agent"]["roocs:Provider"]["prov:label"] == "Provider"
)


def test_prov_workflow(tmpdir):
Expand All @@ -32,3 +35,6 @@ def test_prov_workflow(tmpdir):
assert (
doc["agent"]["roocs:C3S_CDS"]["prov:label"] == "Copernicus Climate Data Store"
)
assert (
doc["agent"]["roocs:Provider"]["prov:label"] == "Provider"
)

0 comments on commit 09ce30c

Please sign in to comment.