diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4efde19..fbf4636 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -44,7 +44,7 @@ jobs: coverage xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4.6.0 + uses: codecov/codecov-action@v5.0.2 with: token: ${{ secrets.CODECOV_TOKEN }} slug: Lucs1590/strava-to-trainingpeaks diff --git a/tests/test_main.py b/tests/test_main.py index 9a9bcf7..59f63fc 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -284,15 +284,6 @@ def test_ask_file_path(self): ) self.assertEqual(result, "assets/downloaded.tcx") - @patch('os.path.expanduser') - @patch('os.listdir') - def test_get_latest_downloads_without_ask(self, mock_listdir, mock_expanduser): - mock_listdir.return_value = ["bike.tcx", "run.tcx", "swim.tcx"] - mock_expanduser.return_value = "assets/" - result = get_latest_download() - - self.assertEqual(result, "assets/swim.tcx") - @patch('src.main.ask_file_path') def test_get_latest_downloads_with_ask(self, mock_ask_path): mock_ask_path.return_value = "assets/bike.tcx"