Skip to content

Commit 40a0d8c

Browse files
committed
more formatting
1 parent 4239980 commit 40a0d8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_app/tests/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS", "False")
2525
_logger = getLogger(__name__)
2626

27+
2728
class PlaywrightTestCase(ChannelsLiveServerTestCase):
2829
databases = {"default"}
2930
total_servers = 4
@@ -116,7 +117,7 @@ def start_playwright_client(cls):
116117
cls.browser = cls.playwright.chromium.launch(headless=bool(headless))
117118
cls.page = cls.browser.new_page()
118119
cls.page.set_default_timeout(10000)
119-
cls.page.on("console", lambda msg: _logger.error(f"error: {msg.text}") if msg.type == "error" else None)
120+
cls.page.on("console", lambda msg: _logger.error("error: %s", msg.text) if msg.type == "error" else None)
120121

121122
@classmethod
122123
def shutdown_playwright_client(cls):

0 commit comments

Comments
 (0)