Skip to content

Commit 93e71c5

Browse files
committed
tests: remove deprecations
1 parent bb52f9f commit 93e71c5

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

ckanext/dc_view/tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pytest
22
pytest-ckan
33
requests
44
requests_toolbelt
5+
pytest_factoryboy

ckanext/dc_view/tests/test_route.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ def test_route_s3_redirect_preview_to_s3_private(
4444
assert "s3_url" in res_dict
4545
assert len(res_dict.get("url"))
4646

47-
# Since version 0.9.0, we are no longer storing the preview image locally.
48-
path = dcor_shared.get_resource_path(rid)
49-
path_prev = path.with_name(path.name + "_preview.jpg")
50-
assert not path_prev.exists(), "sanity check"
51-
5247
did = ds_dict["id"]
5348
# We should not be authorized to access the resource without API token
5449
resp0 = app.get(
@@ -93,11 +88,6 @@ def test_route_s3_redirect_preview_to_s3_public(enqueue_job_mock, app):
9388
assert "s3_url" in res_dict
9489
assert len(res_dict.get("url"))
9590

96-
# Since version 0.9.0, we are no longer storing the preview image locally.
97-
path = dcor_shared.get_resource_path(rid)
98-
path_prev = path.with_name(path.name + "_preview.jpg")
99-
assert not path_prev.exists(), "sanity check"
100-
10191
did = ds_dict["id"]
10292
resp = app.get(
10393
f"/dataset/{did}/resource/{rid}/preview.jpg",

0 commit comments

Comments
 (0)