Skip to content

Commit

Permalink
Linting the code
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwiklinski-r7 committed Jan 14, 2025
1 parent 052593c commit 33adf77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def check_rate_limit(self, state: Dict):
del state[self.RATE_LIMIT_DATETIME]
self.logger.info(log_msg)

def check_rate_limit_error(self, error: ApiException, status_code: int, state: dict, rate_limit_delay: int) -> Tuple[int, Any]:
def check_rate_limit_error(
self, error: ApiException, status_code: int, state: dict, rate_limit_delay: int
) -> Tuple[int, Any]:
if status_code == 429:
new_run_time = time() + rate_limit_delay # default to wait 10 minutes before the next run
try:
Expand Down
4 changes: 1 addition & 3 deletions plugins/duo_admin/unit_test/test_monitor_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def test_monitor_logs(
expected,
config,
):
actual, actual_state, has_more_pages, status_code, _ = self.task.run(
state=current_state, custom_config=config
)
actual, actual_state, has_more_pages, status_code, _ = self.task.run(state=current_state, custom_config=config)
self.assertEqual(actual, expected.get("logs"))
self.assertEqual(actual_state, expected.get("state"))
self.assertEqual(status_code, expected.get("status_code"))

0 comments on commit 33adf77

Please sign in to comment.