Skip to content

Commit 4a59541

Browse files
rootroot
authored andcommitted
Fixed flake8 validation
1 parent b8f3e6e commit 4a59541

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/unittests/test_dispatcher.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -626,12 +626,12 @@ async def test_dispatcher_load_modules_dedicated_app(self):
626626
# Dedicated Apps where placeholder mode is not set
627627
async with self._ctrl as host:
628628
r = await host.init_worker('4.15.1')
629-
l = [log.message for log in r.logs]
629+
logs = [log.message for log in r.logs]
630630
self.assertIn(
631631
"Applying prioritize_customer_dependencies: "
632632
"worker_dependencies_path: , customer_dependencies_path: , "
633633
"working_directory: , Linux Consumption: False,"
634-
" Placeholder: False", l
634+
" Placeholder: False", logs
635635
)
636636

637637
async def test_dispatcher_load_modules_con_placeholder_enabled(self):
@@ -644,13 +644,11 @@ async def test_dispatcher_load_modules_con_placeholder_enabled(self):
644644
os.environ["WEBSITE_PLACEHOLDER_MODE"] = "1"
645645
async with self._ctrl as host:
646646
r = await host.init_worker('4.15.1')
647-
l = [log.message for log in r.logs]
647+
logs = [log.message for log in r.logs]
648648
self.assertNotIn(
649649
"Applying prioritize_customer_dependencies: "
650650
"worker_dependencies_path: , customer_dependencies_path: , "
651-
"working_directory: , Linux Consumption: True,"
652-
" Placeholder: True", l
653-
)
651+
"working_directory: , Linux Consumption: True,", logs)
654652

655653
async def test_dispatcher_load_modules_con_app_placeholder_disabled(self):
656654
"""Test modules are loaded in consumption apps with placeholder mode
@@ -663,10 +661,9 @@ async def test_dispatcher_load_modules_con_app_placeholder_disabled(self):
663661
os.environ["CONTAINER_NAME"] = "test"
664662
async with self._ctrl as host:
665663
r = await host.init_worker('4.15.1')
666-
l = [log.message for log in r.logs]
664+
logs = [log.message for log in r.logs]
667665
self.assertIn(
668666
"Applying prioritize_customer_dependencies: "
669667
"worker_dependencies_path: , customer_dependencies_path: , "
670668
"working_directory: , Linux Consumption: True,"
671-
" Placeholder: False", l
672-
)
669+
" Placeholder: False", logs)

0 commit comments

Comments
 (0)