Skip to content
Open
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
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dependencies = [
"mashumaro>=3.20",
"orjson>=3.10.12",
"yarl>=1.6.0",
"aioresponses>=0.7.7,<0.8",
"pyjwt>=2.11.0",
]

Expand All @@ -43,6 +42,7 @@ Changelog = "https://github.com/erwindouna/python-tado/releases"

[dependency-groups]
dev = [
"aioresponses>=0.7.7,<0.8",
"aresponses>=3.0.0",
"codespell>=2.2.6",
"covdefaults>=2.3.0",
Expand All @@ -60,6 +60,12 @@ dev = [
"deptry>=0.24.0",
]

[tool.uv]
# aioresponses does not support aiohttp 3.14 yet (pnuckowski/aioresponses#289), which
# breaks the test suite; keep the development environment on aiohttp 3.13 until it does.
# This only affects uv.lock, not the published requirements.
constraint-dependencies = ["aiohttp<3.14"]

[tool.hatch.build.targets.sdist]
include = ["src/tadoasync"]

Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def client() -> AsyncGenerator[Tado]:
@pytest.fixture(autouse=True)
def _tado_oauth(responses: aioresponses) -> None:
"""Mock the Tado token URL."""
auth_token = load_fixture("auth_token.txt")
auth_token = load_fixture("auth_token.txt").strip()

responses.post(
TADO_DEVICE_AUTH_URL,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tado.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
if TYPE_CHECKING:
from syrupy import SnapshotAssertion

AUTH_TOKEN = load_fixture("auth_token.txt")
AUTH_TOKEN = load_fixture("auth_token.txt").strip()


async def test_create_session(
Expand Down
Loading
Loading