Add type hints to integration tests (part 2) (#87789)
* Add type hints to integration tests (part 2) * typo * Improve analytics * Improve automation * Imrpove bluetooth
This commit is contained in:
parent
fa7acb4f0d
commit
0cf5e9fb4a
54 changed files with 1075 additions and 676 deletions
|
@ -53,7 +53,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
},
|
||||
),
|
||||
)
|
||||
def test_blueprint_schema(blueprint):
|
||||
def test_blueprint_schema(blueprint) -> None:
|
||||
"""Test different schemas."""
|
||||
try:
|
||||
schemas.BLUEPRINT_SCHEMA(blueprint)
|
||||
|
@ -95,7 +95,7 @@ def test_blueprint_schema(blueprint):
|
|||
},
|
||||
),
|
||||
)
|
||||
def test_blueprint_schema_invalid(blueprint):
|
||||
def test_blueprint_schema_invalid(blueprint) -> None:
|
||||
"""Test different schemas."""
|
||||
with pytest.raises(vol.Invalid):
|
||||
schemas.BLUEPRINT_SCHEMA(blueprint)
|
||||
|
@ -109,6 +109,6 @@ def test_blueprint_schema_invalid(blueprint):
|
|||
{"path": "hello.yaml", "input": {"hello": None}},
|
||||
),
|
||||
)
|
||||
def test_blueprint_instance_fields(bp_instance):
|
||||
def test_blueprint_instance_fields(bp_instance) -> None:
|
||||
"""Test blueprint instance fields."""
|
||||
schemas.BLUEPRINT_INSTANCE_FIELDS({"use_blueprint": bp_instance})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue