From 92709512d056e8b7c9029f9cb84ee7efb5467202 Mon Sep 17 00:00:00 2001 From: Xavier Bustamante Talavera Date: Sun, 7 Jul 2019 21:38:37 +0200 Subject: [PATCH] Fix path without __file__ --- tests/test_workbench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_workbench.py b/tests/test_workbench.py index 445f0727..5c0a28b3 100644 --- a/tests/test_workbench.py +++ b/tests/test_workbench.py @@ -307,7 +307,7 @@ SNAPSHOTS_NEED_ID = { @pytest.mark.parametrize('file', (pytest.param(f, id=f.name) - for f in pathlib.Path().parent.joinpath('workbench_files').iterdir()) + for f in pathlib.Path(__file__).parent.joinpath('workbench_files').iterdir()) ) def test_workbench_fixtures(file: pathlib.Path, user: UserClient): """Uploads the Snapshot files Workbench tests generate.