@pytest.fixture
def dataset() -> Dataset:
title = {
"en": "Title 2",
"fi": "Otsikko 2",
"sv": "Titel 2",
}
persistent_id = "doi:1234"
catalog = factories.DataCatalogFactory(dataset_versioning_enabled=True)
dataset = factories.DatasetFactory(
title=title,
cumulative_state=1,
persistent_identifier=persistent_id,
data_catalog=catalog,
)
dataset.actors.add(factories.DatasetActorFactory(roles=["creator", "publisher"], dataset=None))
return dataset