Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Lucs1590/strava-to-trainingpeaks in…
Browse files Browse the repository at this point in the history
…to dependabot/pip/scipy-1.14.1
  • Loading branch information
Lucas Brito committed Nov 18, 2024
2 parents 32475b7 + 91de0b9 commit 2131901
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2131901

Please sign in to comment.