Skip to content

Commit 2eb0703

Browse files
committed
Fix pre-commit
1 parent b21fb65 commit 2eb0703

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/test_init.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
import secrets
1414
import string
1515

16+
import pytest
17+
1618
# Testing
1719
import aiohttp
1820
from freezegun import freeze_time
19-
import pytest
2021

2122
pw_constants = importlib.import_module("plugwise.constants")
2223
pw_exceptions = importlib.import_module("plugwise.exceptions")
@@ -697,13 +698,16 @@ def validate_test_basics(
697698
"""Produce visual assertion of components base validation."""
698699
parent_logger.info("Basics:")
699700
if smile_type:
700-
parent_logger.info(f" # Assert type matching {smile_type}")
701+
log_msg = f" # Assert type matching {smile_type}"
702+
parent_logger.info(log_msg)
701703
assert smile.smile_type == smile_type
702704
if smile_version:
703-
parent_logger.info(f" # Assert version matching '{smile_version}")
705+
log_msg = f" # Assert version matching '{smile_version}"
706+
parent_logger.info(log_msg)
704707
assert smile.smile_version[0] == smile_version
705708
if smile_version:
706-
parent_logger.info(f" # Assert legacy {smile_legacy}")
709+
log_msg = f" # Assert legacy {smile_legacy}"
710+
parent_logger.info(log_msg)
707711
if smile_legacy:
708712
assert smile._smile_legacy
709713
else:

0 commit comments

Comments
 (0)