Skip to content

Commit

Permalink
ref: migrate to dcor_shared 0.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Feb 26, 2024
1 parent 787ac7a commit b588092
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 58 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"ckanext-dcor_depot>0.11.0",
"ckanext-dcor_schemas>0.17.2",
"ckanext-dcor_theme>0.6.1",
"dcor_shared>=0.6.0",
"dcor_shared>=0.7.5",
"importlib_resources",
"numpy>=1.21", # CVE-2021-33430
# https://github.com/unbit/uwsgi/issues/2580
Expand Down
52 changes: 0 additions & 52 deletions tests/helper_methods.py

This file was deleted.

12 changes: 7 additions & 5 deletions tests/test_inspect_data_ckan.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from dcor_control import inspect

from helper_methods import make_dataset
from dcor_shared.testing import make_dataset


data_path = pathlib.Path(__file__).parent / "data"
Expand Down Expand Up @@ -38,10 +38,12 @@ def test_check_orphaned_files(create_with_upload, monkeypatch, ckan_config,
create_context1 = {'ignore_auth': False,
'user': user['name'], 'api_version': 3}

_, res = make_dataset(create_context1, owner_org,
create_with_upload=create_with_upload,
activate=True,
authors="Peter Pan")
_, res = make_dataset(
create_context1, owner_org,
create_with_upload=create_with_upload,
resource_path=data_path / "calibration_beads_47.rtdc",
activate=True,
authors="Peter Pan")

path = dcor_shared.get_resource_path(res["id"])
path_to_delete = path.with_name(path.stem + "_peter.rtdc~")
Expand Down

0 comments on commit b588092

Please sign in to comment.