Add unit tests (#133)
* Add initial test & add pipeline * Add very basic YAML config tests * Add coverage reporting * Add some webserver & template loading tests * Add test cases for the helpers * Implement initial OIDC server tests * Test codestore & discovery checker * Test basics of the config flow * Add test for the HA auth provider * Cleaned up tests & test injection
This commit is contained in:
committed by
GitHub
parent
5714e844a7
commit
404d2451df
@@ -11,6 +11,7 @@ dependencies = [
|
||||
"aiofiles~=24.1",
|
||||
"jinja2~=3.1",
|
||||
"bcrypt~=4.2",
|
||||
"joserfc>=1.3.4",
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = "~=3.13.7"
|
||||
@@ -19,6 +20,10 @@ requires-python = "~=3.13.7"
|
||||
dev = [
|
||||
"homeassistant~=2025.8",
|
||||
"pylint~=3.3",
|
||||
"pytest>=8.4.2",
|
||||
"pytest-asyncio>=1.2.0",
|
||||
"pytest-cov>=7.0.0",
|
||||
"pytest-homeassistant-custom-component>=0.13.286",
|
||||
"ruff~=0.12",
|
||||
]
|
||||
|
||||
@@ -34,3 +39,8 @@ allow-direct-references = true
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["custom_components/auth_oidc"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
addopts = "--cov=custom_components --cov-fail-under=0"
|
||||
log_level = "DEBUG"
|
||||
|
||||
Reference in New Issue
Block a user