Skip to content

Commit 35e8834

Browse files
committed
fix styling
1 parent d9551c2 commit 35e8834

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

azure_functions_worker/dispatcher.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ async def _handle__functions_metadata_request(self, request):
318318
try:
319319
# Filter function app dependency logs by root logger if
320320
# logging filtering setting is specified
321-
if os.getenv(PYTHON_ENABLE_DEPENDENCY_LOG_FILTERING_MODULES) is not None:
321+
if os.getenv(PYTHON_ENABLE_DEPENDENCY_LOG_FILTERING_MODULES) is \
322+
not None:
322323
enable_dependency_log_filtering(
323324
os.environ[PYTHON_ENABLE_DEPENDENCY_LOG_FILTERING_MODULES])
324325

tests/unittests/test_enable_dependency_logging_filtering.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def tearDownClass(cls):
4242
@classmethod
4343
def get_script_dir(cls):
4444
return testutils.UNIT_TESTS_FOLDER / 'log_filtering_functions' / \
45-
'dependency_logging_filter'
45+
'dependency_logging_filter'
4646

4747
def test_dependency_logging_filter_enabled(self):
4848
"""
@@ -82,7 +82,7 @@ def tearDownClass(cls):
8282
@classmethod
8383
def get_script_dir(cls):
8484
return testutils.UNIT_TESTS_FOLDER / 'log_filtering_functions' / \
85-
'dependency_logging_filter'
85+
'dependency_logging_filter'
8686

8787
def test_dependency_logging_filter_disabled(self):
8888
"""
@@ -101,8 +101,7 @@ def check_log_dependency_logging_filter_disabled(self,
101101
self.assertIn('logging from external library', host_out)
102102

103103

104-
class TestDependencyLoggingEnabledBluePrintFunctions(
105-
testutils.WebHostTestCase):
104+
class TestDependencyLoggingEnabledBluePrintFunctions(testutils.WebHostTestCase):
106105
"""
107106
Tests for cx dependency logging filtering with blueprint func enabled case.
108107
"""
@@ -126,7 +125,7 @@ def tearDownClass(cls):
126125
@classmethod
127126
def get_script_dir(cls):
128127
return testutils.UNIT_TESTS_FOLDER / 'log_filtering_functions' / \
129-
'dependency_logging_filter'
128+
'dependency_logging_filter'
130129

131130
def test_dependency_logging_filter_blueprint_enabled(self):
132131
"""
@@ -148,7 +147,7 @@ def check_log_dependency_logging_filter_blueprint_enabled(self,
148147

149148

150149
class TestDependencyLoggingDisabledBluePrintFunctions(
151-
testutils.WebHostTestCase):
150+
testutils.WebHostTestCase):
152151
"""
153152
Tests for cx dependency logging filtering with blueprint func disabled
154153
case.
@@ -169,7 +168,7 @@ def tearDownClass(cls):
169168
@classmethod
170169
def get_script_dir(cls):
171170
return testutils.UNIT_TESTS_FOLDER / 'log_filtering_functions' / \
172-
'dependency_logging_filter'
171+
'dependency_logging_filter'
173172

174173
def test_dependency_logging_filter_disabled_blueprint(self):
175174
"""

0 commit comments

Comments
 (0)