Add return type to tests without arguments (#87613)
* Add return type to tests without arguments * Black * Cancel fixture amends
This commit is contained in:
parent
fb4c0b4b7a
commit
4142f0d15d
99 changed files with 473 additions and 459 deletions
|
@ -331,7 +331,7 @@ async def test_sensor_unavailable(hass, utcnow):
|
|||
assert state.state == "unavailable"
|
||||
|
||||
|
||||
def test_thread_node_caps_to_str():
|
||||
def test_thread_node_caps_to_str() -> None:
|
||||
"""Test all values of this enum get a translatable string."""
|
||||
assert (
|
||||
thread_node_capability_to_str(ThreadNodeCapabilities.BORDER_ROUTER_CAPABLE)
|
||||
|
@ -347,7 +347,7 @@ def test_thread_node_caps_to_str():
|
|||
assert thread_node_capability_to_str(ThreadNodeCapabilities(128)) == "none"
|
||||
|
||||
|
||||
def test_thread_status_to_str():
|
||||
def test_thread_status_to_str() -> None:
|
||||
"""Test all values of this enum get a translatable string."""
|
||||
assert thread_status_to_str(ThreadStatus.BORDER_ROUTER) == "border_router"
|
||||
assert thread_status_to_str(ThreadStatus.LEADER) == "leader"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue