Skip to content

Commit e59883a

Browse files
fix unit test formatting errors
1 parent 2e07656 commit e59883a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/integ/timeout.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def timeout_and_delete_endpoint_by_name(
8585
pass
8686
# trying to delete the resource again in 10 seconds
8787
if exponential_sleep:
88-
_sleep_between_cleanup_attempts = (sleep_between_cleanup_attempts * (3 - attempts))
88+
_sleep_between_cleanup_attempts = sleep_between_cleanup_attempts * (
89+
3 - attempts
90+
)
8991
else:
9092
_sleep_between_cleanup_attempts = sleep_between_cleanup_attempts
9193
sleep(_sleep_between_cleanup_attempts)
@@ -155,7 +157,9 @@ def _delete_schedules_associated_with_endpoint(sagemaker_session, endpoint_name)
155157
monitor.delete_monitoring_schedule()
156158
except Exception as e:
157159
LOGGER.warning(
158-
"Failed to delete monitor {},\nError: {}".format(monitor.monitoring_schedule_name, e)
160+
"Failed to delete monitor {},\nError: {}".format(
161+
monitor.monitoring_schedule_name, e
162+
)
159163
)
160164

161165

tests/unit/test_timeout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def test_timeout_and_delete_endpoint_by_name_retries_resource_deletion_on_failur
182182
return_value=None,
183183
autospec=True,
184184
)
185-
@patch('tests.integ.timeout.sleep', return_value=None)
185+
@patch("tests.integ.timeout.sleep", return_value=None)
186186
def test_timeout_and_delete_endpoint_by_name_retries_resource_deletion_on_failure_with_exp_sleep(
187187
mock_sleep, _show_logs, _cleanup_logs, _delete_schedules_associated_with_endpoint, session
188188
):

0 commit comments

Comments
 (0)