@@ -129,7 +129,9 @@ def test_log_status_success(self, mock_get_customer_ikey, mock_getpid):
129
129
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.getpid" ,
130
130
return_value = TEST_PID ,
131
131
)
132
- def test_log_status_failed_initialization (self , mock_get_customer_ikey , mock_getpid ):
132
+ def test_log_status_failed_initialization (
133
+ self , mock_get_customer_ikey , mock_getpid
134
+ ):
133
135
AzureStatusLogger .log_status (True , MESSAGE1 )
134
136
AzureStatusLogger .log_status (False , MESSAGE2 )
135
137
check_file_for_messages (False , MESSAGE2 )
@@ -195,7 +197,9 @@ def test_log_status_no_reason(self, mock_get_customer_ikey, mock_getpid):
195
197
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.getpid" ,
196
198
return_value = TEST_PID ,
197
199
)
198
- def test_disabled_log_status_success (self , mock_get_customer_ikey , mock_getpid ):
200
+ def test_disabled_log_status_success (
201
+ self , mock_get_customer_ikey , mock_getpid
202
+ ):
199
203
AzureStatusLogger .log_status (False , MESSAGE1 )
200
204
AzureStatusLogger .log_status (True , MESSAGE2 )
201
205
check_file_is_empty ()
@@ -228,7 +232,9 @@ def test_disabled_log_status_success(self, mock_get_customer_ikey, mock_getpid):
228
232
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.getpid" ,
229
233
return_value = TEST_PID ,
230
234
)
231
- def test_disabled_log_status_failed_initialization (self , mock_get_customer_ikey , mock_getpid ):
235
+ def test_disabled_log_status_failed_initialization (
236
+ self , mock_get_customer_ikey , mock_getpid
237
+ ):
232
238
AzureStatusLogger .log_status (True , MESSAGE1 )
233
239
AzureStatusLogger .log_status (False , MESSAGE2 )
234
240
check_file_is_empty ()
@@ -261,7 +267,9 @@ def test_disabled_log_status_failed_initialization(self, mock_get_customer_ikey,
261
267
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.getpid" ,
262
268
return_value = TEST_PID ,
263
269
)
264
- def test_disabled_log_status_no_reason (self , mock_get_customer_ikey , mock_getpid ):
270
+ def test_disabled_log_status_no_reason (
271
+ self , mock_get_customer_ikey , mock_getpid
272
+ ):
265
273
AzureStatusLogger .log_status (False , MESSAGE1 )
266
274
AzureStatusLogger .log_status (True )
267
275
check_file_is_empty ()
0 commit comments