Skip to content

Commit

Permalink
Merge pull request #137 from sensein/test_mon
Browse files Browse the repository at this point in the history
adding testmon as a dev dependency
  • Loading branch information
fabiocat93 authored Aug 9, 2024
2 parents f1853bb + 715f9e4 commit c96ee1f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,8 @@ docs/
# Speechbrain models
pretrained_models
src/tests/audio/tasks/pretrained_models/

# testmon
.testmondata
.testmondata-shm
.testmondata-wal
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ repos:
hooks:
- id: pytest
name: pytest
entry: poetry run pytest
entry: poetry run pytest --testmon
language: system
types: [python]
pass_filenames: false
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ ruff = "~=0.3"
codespell = "~=2.3"
jupyter = "~=1.0"
ipywidgets = "~=8.1"
pytest-testmon = "~=2.1.1"

[tool.poetry.group.docs]
optional = true
Expand Down
2 changes: 1 addition & 1 deletion src/tests/audio/tasks/text_to_speech_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@pytest.fixture
def hf_model() -> HFModel:
"""Fixture for HF model."""
"""Fixture for the HF model."""
return HFModel(path_or_uri="suno/bark-small", revision="main")

def test_synthesize_texts(hf_model: HFModel) -> None:
Expand Down

0 comments on commit c96ee1f

Please sign in to comment.