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
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ classifier =
Topic :: Home Automation

[tool:pytest]
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
testpaths = tests
norecursedirs = .git
log_level=INFO
addopts =
-p no:respx
--strict-markers
--asyncio-mode=auto

Expand Down
2 changes: 1 addition & 1 deletion tests/requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mypy==1.10.1
pre-commit==3.7.1
pytest==9.0.3
pytest-cov==7.1.0
pytest-homeassistant-custom-component==0.13.326
pytest-homeassistant==2026.11.0
ruff==0.15.12
pylint==3.3.4
pylint-strict-informational==0.1
2 changes: 1 addition & 1 deletion tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@pytest.fixture(name="pyscript_bypass_setup")
def pyscript_bypass_setup_fixture():
"""Mock component setup."""
logging.getLogger("pytest_homeassistant_custom_component.common").setLevel(logging.WARNING)
logging.getLogger("pytest_homeassistant.common").setLevel(logging.WARNING)
with patch("custom_components.pyscript.async_setup_entry", return_value=True):
yield

Expand Down
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from unittest.mock import mock_open, patch

import pytest
from pytest_homeassistant_custom_component.common import mock_restore_cache
from pytest_homeassistant.common import mock_restore_cache

from custom_components.pyscript import restore_state, trigger
from custom_components.pyscript.const import DOMAIN
Expand Down
2 changes: 1 addition & 1 deletion tests/test_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest
from pytest import fixture
from pytest_homeassistant_custom_component.common import MockConfigEntry
from pytest_homeassistant.common import MockConfigEntry

from custom_components.pyscript.const import (
ATTR_INSTALLED_VERSION,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from types import ModuleType

import pytest
from pytest_homeassistant_custom_component.common import MockConfigEntry
from pytest_homeassistant.common import MockConfigEntry

from custom_components.pyscript import DecoratorRegistry
from custom_components.pyscript.const import CONF_ALLOW_ALL_IMPORTS, CONFIG_ENTRY, DOMAIN
Expand Down
Loading