Fix path without __file__

This commit is contained in:
Xavier Bustamante Talavera 2019-07-07 21:38:37 +02:00
parent ce961a1bed
commit 92709512d0

View file

@ -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.