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:
epenet 2023-02-10 16:05:26 +01:00 committed by GitHub
parent fa7acb4f0d
commit 0cf5e9fb4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 1075 additions and 676 deletions

View file

@ -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})