Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
janeklb committed Aug 3, 2024
1 parent dedf83b commit dbfb224
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/gh_search_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def test_get_filtered_results_many_calls(mock_client, mock_click):
abort=True,
)


def test_get_filtered_results_rate_limiting_disabled(mock_client, mock_click):
mock_client.get_rate_limit.side_effect = github.GithubException(404, "Not Found")
mock_client.search_code.return_value = MockPaginatedList(*[], total_count=0)
Expand All @@ -137,4 +138,4 @@ def test_get_filtered_results_rate_limiting_disabled(mock_client, mock_click):
ghsearch = GHSearch(mock_client, [mock_filter], True)
ghsearch.get_filtered_results(["query", "org:bort"])

mock_click.echo.assert_any_call("(Rate limiting is disabled)")
mock_click.echo.assert_any_call("(Rate limiting is disabled)")

0 comments on commit dbfb224

Please sign in to comment.