Skip to content

Commit 13b12c3

Browse files
committed
chore: update test + lint
1 parent f2331b5 commit 13b12c3

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ def get_copilot_team_date(gh: github_api_toolkit.github_interface, page: int) ->
7474

7575
if not isinstance(usage_data, Response):
7676

77-
# If the response is not a Response object, no copilot data is available for this team
77+
# If the response is not a Response object, no copilot data is available for this team
7878
# We can then skip this team
79-
# We don't log this as an error, as it is expected that some teams may not have Copilot data and it'd be too noisy
79+
80+
# We don't log this as an error, as it is expected and it'd be too noisy within logs
8081

8182
continue
8283

@@ -96,7 +97,7 @@ def get_copilot_team_date(gh: github_api_toolkit.github_interface, page: int) ->
9697
"team_slug": team_slug,
9798
"team_description": team_description,
9899
"team_html_url": team_html_url,
99-
}
100+
},
100101
)
101102

102103
copilot_teams.append(

tests/test_main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,6 @@ def test_get_copilot_team_date_unexpected_usage_response(self, caplog):
331331
with caplog.at_level("ERROR"):
332332
result = get_copilot_team_date(gh, 1)
333333
assert result == []
334-
assert any(
335-
"Unexpected response type" in record.getMessage() for record in caplog.records
336-
)
337334

338335
@patch("src.main.org", "test-org")
339336
def test_get_copilot_team_date_empty_teams(self):

0 commit comments

Comments
 (0)