From 8448ae0a840ef773ea909e0cb26473fe31543a81 Mon Sep 17 00:00:00 2001 From: Daniele Serafini <danseraf@softwareheritage.org> Date: Wed, 11 Mar 2020 14:46:31 +0100 Subject: [PATCH] get_subpaths test adapted to the new temp_folder structure --- swh/scanner/tests/test_scanner.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/swh/scanner/tests/test_scanner.py b/swh/scanner/tests/test_scanner.py index c1b609b..6165aec 100644 --- a/swh/scanner/tests/test_scanner.py +++ b/swh/scanner/tests/test_scanner.py @@ -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) -- GitLab