Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyorlando committed Dec 18, 2024
1 parent 45775fd commit a01c4d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tools/migrators/lib/pagerduty/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ def migrate() -> None:
migrate_notification_rules(user)
print(TAB + format_user(user))
else:
print("▶ Skipping migrating user notification rules as MIGRATE_USERS is false...")
print(
"▶ Skipping migrating user notification rules as MIGRATE_USERS is false..."
)

print("▶ Migrating schedules...")
for schedule in schedules:
Expand Down
4 changes: 3 additions & 1 deletion tools/migrators/lib/tests/pagerduty/test_migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
@patch("lib.pagerduty.migrate.MIGRATE_USERS", False)
@patch("lib.pagerduty.migrate.APISession")
@patch("lib.pagerduty.migrate.OnCallAPIClient")
def test_users_are_skipped_when_migrate_users_is_false(MockOnCallAPIClient, MockAPISession):
def test_users_are_skipped_when_migrate_users_is_false(
MockOnCallAPIClient, MockAPISession
):
mock_session = MockAPISession.return_value
mock_session.list_all.return_value = []
mock_oncall_client = MockOnCallAPIClient.return_value
Expand Down

0 comments on commit a01c4d3

Please sign in to comment.