Refactor aestransport to use a state enum (#691)

This commit is contained in:
J. Nick Koston
2024-01-23 22:50:25 -10:00
committed by GitHub
parent 3f40410db3
commit 24c645746e
3 changed files with 58 additions and 43 deletions

View File

@@ -65,9 +65,16 @@ omit = ["kasa/tests/*"]
[tool.coverage.report]
exclude_lines = [
# ignore abstract methods
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
"def __repr__"
# Don't complain about missing debug-only code:
"def __repr__",
# Have to re-enable the standard pragma
"pragma: no cover",
# TYPE_CHECKING and @overload blocks are never executed during pytest run
"if TYPE_CHECKING:",
"@overload"
]
[tool.pytest.ini_options]