1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Fix a collection of tests with missing asserts (#48127)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Franck Nijhof
2021-03-20 17:23:55 +01:00
committed by GitHub
parent f8755a52c2
commit 08870690a6
7 changed files with 23 additions and 25 deletions

View File

@@ -165,9 +165,9 @@ async def test_can_set_level(hass):
logger.DOMAIN, "set_level", {f"{UNCONFIG_NS}.any": "debug"}, blocking=True
)
logging.getLogger(UNCONFIG_NS).level == logging.NOTSET
logging.getLogger(f"{UNCONFIG_NS}.any").level == logging.DEBUG
logging.getLogger(UNCONFIG_NS).level == logging.NOTSET
assert logging.getLogger(UNCONFIG_NS).level == logging.NOTSET
assert logging.getLogger(f"{UNCONFIG_NS}.any").level == logging.DEBUG
assert logging.getLogger(UNCONFIG_NS).level == logging.NOTSET
await hass.services.async_call(
logger.DOMAIN, "set_default_level", {"level": "debug"}, blocking=True