Fix path without __file__

This commit is contained in:
Xavier Bustamante Talavera 2019-07-07 21:38:37 +02:00
parent ce961a1bed
commit 92709512d0
1 changed files with 1 additions and 1 deletions

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.