Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: fixed test file paths #197

Merged
merged 14 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/env_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
env:
NAS_CREDS: ${{ secrets.NAS_CREDS }}
run: |
poetry run python -m pytest pyha_tests
poetry run python -m pytest pyha_tests -rP
ntlhui marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 3 additions & 3 deletions pyha_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
2 changes: 2 additions & 0 deletions pyha_tests/test_pyha.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down