Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Sep 1, 2024
1 parent d5bcf23 commit eb93691
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"datetime.datetime" = "dt"
"datetime.timedate" = "td"
exceptions = "exc"
voluptuous = "vol"
evohomeasync = "ev1"
evohomeasync2 = "ev2"
exceptions = "exc"


[tool.ruff.lint.isort]
Expand Down
10 changes: 5 additions & 5 deletions tests/tests_rf/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import pytest

import evohomeasync as evo1
import evohomeasync as ev1
import evohomeasync2 as ev2
from evohomeasync2.client import TokenManager
from evohomeasync2.const import URL_BASE as URL_BASE_2
Expand All @@ -30,13 +30,13 @@ async def instantiate_client_v1(
username: str,
password: str,
session: aiohttp.ClientSession | None = None,
) -> evo1.EvohomeClient:
) -> ev1.EvohomeClient:
"""Instantiate a client, and logon to the vendor API."""

global _global_session_id # noqa: PLW0603

# Instantiation, NOTE: No API calls invoked during instantiation
evo = evo1.EvohomeClient(
evo = ev1.EvohomeClient(
username,
password,
session=session,
Expand All @@ -51,7 +51,7 @@ async def instantiate_client_v1(


async def should_work_v1( # noqa: PLR0913
evo: evo1.EvohomeClient,
evo: ev1.EvohomeClient,
method: HTTPMethod,
url: str,
json: dict | None = None,
Expand Down Expand Up @@ -83,7 +83,7 @@ async def should_work_v1( # noqa: PLR0913


async def should_fail_v1( # noqa: PLR0913
evo: evo1.EvohomeClient,
evo: ev1.EvohomeClient,
method: HTTPMethod,
url: str,
json: dict | None = None,
Expand Down

0 comments on commit eb93691

Please sign in to comment.