Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nine5two7 committed Nov 4, 2024
1 parent 81f6c6c commit 4679d94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion aws/logs_monitoring/tests/test_awslogs_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def test_awslogs_handler_step_functions_tags_added_properly(
awslogs_handler = AwsLogsHandler(context, metadata, cache_layer)
verify_as_json(list(awslogs_handler.handle(event)))
verify_as_json(metadata, options=NamerFactory.with_parameters("metadata"))
self.assertEqual(awslogs_handler.metadata[DD_SOURCE], AwsEventSource.StepFunction);
self.assertEqual(
awslogs_handler.metadata[DD_SOURCE], AwsEventSource.StepFunction
)
self.assertEqual(
awslogs_handler.metadata[DD_SOURCE], AwsEventSource.StepFunction
)
Expand Down
4 changes: 3 additions & 1 deletion aws/logs_monitoring/tests/test_customized_log_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def test_is_step_functions_log_group(self):
self.assertEqual(is_step_functions_log_group(lambda_log_stream_name), False)

# SF logstream is true
step_functions_log_stream_name = "states/selfmonit-statemachine/2024-11-04-15-30/00000000"
step_functions_log_stream_name = (
"states/selfmonit-statemachine/2024-11-04-15-30/00000000"
)
self.assertEqual(
is_step_functions_log_group(step_functions_log_stream_name), True
)

0 comments on commit 4679d94

Please sign in to comment.