Skip to content

Commit 4f4bc87

Browse files
committed
tests: remove request context
1 parent e3aaea5 commit 4f4bc87

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

ckanext/dc_serve/tests/test_jobs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def test_create_condensed_dataset_job_upload_s3(enqueue_job_mock, tmp_path):
5555
"dcor_object_store.endpoint_url")
5656
cond_url = f"{endpoint}/{bucket_name}/{object_name}"
5757

58-
5958
print("ACCESSING URL", cond_url)
6059
response = requests.get(cond_url)
6160
assert response.ok, "resource is public"

ckanext/dc_serve/tests/test_route.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
@pytest.mark.ckan_config('ckan.plugins', 'dcor_depot dcor_schemas dc_serve')
17-
@pytest.mark.usefixtures('clean_db', 'with_request_context')
17+
@pytest.mark.usefixtures('clean_db')
1818
@mock.patch('ckan.plugins.toolkit.enqueue_job',
1919
side_effect=synchronous_enqueue_job)
2020
def test_route_redircet_condensed_to_s3_private(enqueue_job_mock, app):
@@ -72,7 +72,7 @@ def test_route_redircet_condensed_to_s3_private(enqueue_job_mock, app):
7272

7373

7474
@pytest.mark.ckan_config('ckan.plugins', 'dcor_depot dcor_schemas dc_serve')
75-
@pytest.mark.usefixtures('clean_db', 'with_request_context')
75+
@pytest.mark.usefixtures('clean_db')
7676
@mock.patch('ckan.plugins.toolkit.enqueue_job',
7777
side_effect=synchronous_enqueue_job)
7878
def test_route_condensed_to_s3_public(enqueue_job_mock, app):
@@ -113,7 +113,7 @@ def test_route_condensed_to_s3_public(enqueue_job_mock, app):
113113

114114

115115
@pytest.mark.ckan_config('ckan.plugins', 'dcor_depot dcor_schemas dc_serve')
116-
@pytest.mark.usefixtures('clean_db', 'with_request_context')
116+
@pytest.mark.usefixtures('clean_db')
117117
@mock.patch('ckan.plugins.toolkit.enqueue_job',
118118
side_effect=synchronous_enqueue_job)
119119
def test_route_redircet_resource_to_s3_private(enqueue_job_mock, app):

0 commit comments

Comments
 (0)