Skip to content

Commit

Permalink
tests: fix invalid make_dataset method
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 31, 2024
1 parent 583450c commit b67b56b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.7.2
- tests: fix invalid make_dataset method
0.7.1
- fix: handle non-existent bucket when S3 object is missing
- docs: be more verbose in s3cc docstrings
Expand Down
7 changes: 5 additions & 2 deletions dcor_shared/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def factory(data, filename, context=None, **kwargs):


def make_dataset(create_context, owner_org, create_with_upload=None,
activate=False, **kwargs):
resource_path=None, activate=False, **kwargs):
if "title" not in kwargs:
kwargs["title"] = "test-dataset"
if "authors" not in kwargs:
Expand All @@ -52,7 +52,10 @@ def make_dataset(create_context, owner_org, create_with_upload=None,
)

if create_with_upload is not None:
rs = make_resource(create_with_upload, create_context, ds["id"])
rs = make_resource(resource_path=resource_path,
create_with_upload=create_with_upload,
create_context=create_context,
dataset_id=ds["id"])

if activate:
helpers.call_action("package_patch", create_context,
Expand Down

0 comments on commit b67b56b

Please sign in to comment.