Skip to content
Snippets Groups Projects
Commit 8448ae0a authored by Daniele Serafini's avatar Daniele Serafini
Browse files

get_subpaths test adapted to the new temp_folder structure

parent 3de53386
No related branches found
No related tags found
1 merge request!8scanner: added test for the model
......@@ -47,10 +47,13 @@ def test_scanner_raise_apierror_input_size_limit(
pids_discovery(request, aiosession, api_url))
def test_scanner_get_subpaths(tmp_path, temp_paths):
def test_scanner_get_subpaths(temp_folder, tmp_path):
paths = temp_folder['paths'].keys()
pids = temp_folder['paths'].values()
for subpath, pid in get_subpaths(tmp_path):
assert subpath in temp_paths['paths']
assert pid in temp_paths['pids']
assert subpath in paths
assert pid in pids
@pytest.mark.options(debug=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment