Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyagreco committed Sep 14, 2024
1 parent e3ea632 commit 5e47fae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[tool.ruff.lint]
select = [ "I001" ]
select = [ "I001", "F401" ]
1 change: 0 additions & 1 deletion test/integration/test_api/test_league.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def test_get_user_leagues_for_year(self):
)
self.assertEqual(USER_A_LEAGUES_2022, response)


def test_get_rosters(self):
response = get_rosters(league_id=LEAGUE_A_LEAGUE_ID_1)
# this response will constantly change, so just assert some general things
Expand Down
5 changes: 1 addition & 4 deletions test/unit/test_api/test_league.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,13 @@ def test_get_user_leagues_for_year(self, mock_requests_get):
"https://api.sleeper.app/v1/user/12345/leagues/nfl/2024"
)


@patch("requests.get")
def test_get_rosters(self, mock_requests_get):
mock_list = [{"foo": "bar"}]
mock_response = MockResponse(mock_list, 200)
mock_requests_get.return_value = mock_response

response = get_rosters(
league_id="12345"
)
response = get_rosters(league_id="12345")

self.assertEqual(mock_list, response)
mock_requests_get.assert_called_once_with(
Expand Down

0 comments on commit 5e47fae

Please sign in to comment.