From 5e47fae750d7983832d6fae7b7d760c6a47196d1 Mon Sep 17 00:00:00 2001 From: joeyagreco Date: Sat, 14 Sep 2024 10:43:21 -0400 Subject: [PATCH] fix formatting --- pyproject.toml | 2 +- test/integration/test_api/test_league.py | 1 - test/unit/test_api/test_league.py | 5 +---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2f726f2..e4dfe47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,2 @@ [tool.ruff.lint] -select = [ "I001" ] +select = [ "I001", "F401" ] diff --git a/test/integration/test_api/test_league.py b/test/integration/test_api/test_league.py index e39ec64..02a8f37 100644 --- a/test/integration/test_api/test_league.py +++ b/test/integration/test_api/test_league.py @@ -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 diff --git a/test/unit/test_api/test_league.py b/test/unit/test_api/test_league.py index 6fa1ae0..b8a8d9a 100644 --- a/test/unit/test_api/test_league.py +++ b/test/unit/test_api/test_league.py @@ -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(