@pytest.fixture
def dataset_with_provenance_json(dataset_a_json, entity_json):
dataset_a_json["provenance"] = [
{
"title": {"fi": "otsikko"},
"description": {"fi": "kuvaus"},
"spatial": {"reference": {"url": "http://www.yso.fi/onto/onto/yso/c_9908ce39"}},
"lifecycle_event": {
"url": "http://uri.suomi.fi/codelist/fairdata/lifecycle_event/code/planned",
},
"event_outcome": {
"url": "http://uri.suomi.fi/codelist/fairdata/event_outcome/code/success"
},
"is_associated_with": [
{
"organization": {
"pref_label": {"fi": "CSC"},
},
"person": {"name": "john"},
}
],
"used_entity": [entity_json],
},
{
"title": {"en": "second provenance title"},
"description": {"en": "descriptive description"},
"spatial": {"reference": {"url": "http://www.yso.fi/onto/onto/yso/c_9908ce39"}},
"lifecycle_event": {
"url": "http://uri.suomi.fi/codelist/fairdata/lifecycle_event/code/planned",
},
"event_outcome": {
"url": "http://uri.suomi.fi/codelist/fairdata/event_outcome/code/success"
},
"is_associated_with": [
{
"organization": {
"pref_label": {"fi": "CSC"},
},
"person": {"name": "john"},
}
],
},
]
dataset_a_json["actors"] = [
{
"person": {"name": "john"},
"organization": {
"pref_label": {"fi": "CSC"},
},
"roles": ["creator", "publisher"],
}
]
return dataset_a_json