Skip to content

Commit b5221e5

Browse files
committed
Added method to fetch project versions using GitHub API, removed hardcoded versions in tests.
1 parent 4c8ed4e commit b5221e5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/download_helpers/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def testGetDownloadURL(self):
8585
"""Tests the GetDownloadURL functions."""
8686
download_helper = github.GitHubReleasesDownloadHelper(self._DOWNLOAD_URL)
8787

88-
project_version = download_helper.GetLatestVersionWithAPI(None)
88+
project_version = download_helper.GetLatestVersionWithAPI(None)
8989

9090
download_url = download_helper.GetDownloadURL(
9191
self._PROJECT_NAME, project_version)

tests/download_helpers/pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class PyPIDownloadHelperTest(test_lib.BaseTestCase):
2222
_DOWNLOAD_URL = 'https://pypi.org/project/dfvfs'
2323

2424
_PROJECT_NAME = 'dfvfs'
25-
_PROJECT_VERSION = '20181209'
25+
_PROJECT_VERSION = '20181215'
2626

2727
def testGetLatestVersion(self):
2828
"""Tests the GetLatestVersion functions."""

0 commit comments

Comments
 (0)