test: improve coverage and raise threshold to 80% (#154)

This commit is contained in:
banteg
2026-01-16 13:19:41 +04:00
committed by GitHub
parent 92b33c5181
commit da881fcee5
26 changed files with 4282 additions and 412 deletions
+9
View File
@@ -1,9 +1,18 @@
from collections.abc import Iterator
import pytest
from takopi import plugins
from tests.plugin_fixtures import FakeEntryPoint, install_entrypoints
@pytest.fixture(autouse=True)
def _reset_plugin_state() -> Iterator[None]:
plugins.reset_plugin_state()
yield
plugins.reset_plugin_state()
def test_list_ids_does_not_load_entrypoints(monkeypatch) -> None:
calls = {"count": 0}