Skip to content
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
20 changes: 10 additions & 10 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
codespell==2.4.1
coveralls==4.0.1
mypy==1.16.1
pre-commit==4.2.0
pydantic==2.11.7
pylint==3.3.7
pylint-per-file-ignores==1.4.0
pytest==8.4.1
pytest-asyncio==1.0.0
pytest-cov==6.2.1
mypy==1.18.2
pre-commit==4.3.0
pydantic==2.12.0
pylint==3.3.9
pylint-per-file-ignores==3.0.0
pytest==8.4.2
pytest-asyncio==1.2.0
pytest-cov==7.0.0
pytest-timeout==2.4.0
ruff==0.12.3
syrupy==4.9.1
ruff==0.14.0
syrupy==5.0.0
4 changes: 2 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ArgumentValue:
def get_value(self, args: dict[str, Any]) -> Any:
"""Get the value."""
if self.value:
return value
return self.value
assert self.arg_name is not None
arg_value = args[self.arg_name]
if self.formatter == "on_off":
Expand Down Expand Up @@ -159,7 +159,7 @@ async def wrapped(*args: Any, **kwargs: Any) -> Any:
return wrapper


def value(
def value_source(
*,
value: Any | None = None,
arg_name: str | None = None,
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
from . import MockHeos, MockHeosDevice


@pytest.fixture
def snapshot(snapshot: SnapshotAssertion) -> SnapshotAssertion:
@pytest.fixture(name="snapshot")
def snapshot_fixture(snapshot: SnapshotAssertion) -> SnapshotAssertion:
"""Return snapshot assertion fixture with the Heos extension."""
return snapshot.use_extension(HeosSnapshotExtension)

Expand Down
3 changes: 2 additions & 1 deletion tests/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from pyheos.group import HeosGroup
from pyheos.heos import Heos
from pyheos.message import HeosMessage
from tests import CallCommand, calls_command, calls_commands, value
from tests import CallCommand, calls_command, calls_commands
from tests import value_source as value


def test_group_from_data_no_leader_raises() -> None:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_heos_browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
from pyheos.heos import Heos
from pyheos.media import MediaMusicSource
from pyheos.options import HeosOptions
from tests import calls_command, value
from tests import calls_command
from tests import value_source as value
from tests.common import MediaMusicSources


Expand Down
3 changes: 2 additions & 1 deletion tests/test_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
from pyheos.media import MediaItem
from pyheos.player import HeosPlayer
from pyheos.types import AddCriteriaType, PlayState, RepeatType
from tests import CallCommand, calls_command, calls_commands, value
from tests import CallCommand, calls_command, calls_commands
from tests import value_source as value
from tests.common import MediaItems


Expand Down
Loading