diff --git a/.github/workflows/env_test.yml b/.github/workflows/env_test.yml index 4460e378..4dd0e67a 100644 --- a/.github/workflows/env_test.yml +++ b/.github/workflows/env_test.yml @@ -28,4 +28,4 @@ jobs: env: NAS_CREDS: ${{ secrets.NAS_CREDS }} run: | - poetry run python -m pytest pyha_tests \ No newline at end of file + poetry run python -m pytest pyha_tests -rP \ No newline at end of file diff --git a/pyha_tests/conftest.py b/pyha_tests/conftest.py index 09a94cbe..7a7525f7 100644 --- a/pyha_tests/conftest.py +++ b/pyha_tests/conftest.py @@ -52,7 +52,7 @@ def create_reference_data(creds) -> Path: username=creds['username'], password=creds['password'] ) - yield path.joinpath('pyha_test') + yield path.joinpath('TEST') else: - shutil.copytree(Path('TEST'), path, dirs_exist_ok=True) - yield path + #shutil.copytree(Path('TEST'), path, dirs_exist_ok=True) + yield path.joinpath('TEST') diff --git a/pyha_tests/test_pyha.py b/pyha_tests/test_pyha.py index 34c42523..ed13344f 100644 --- a/pyha_tests/test_pyha.py +++ b/pyha_tests/test_pyha.py @@ -12,6 +12,8 @@ def test_reference_data(reference_data: Path): Args: reference_data (Path): Path to reference data """ + test_path = reference_data.parents[0] + assert reference_data.exists() for i in range(11): assert reference_data.joinpath(f'ScreamingPiha{i + 1}.wav').exists()