Skip to content

Commit

Permalink
Merge branch 'master' into improve_test_runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
whimboo authored Jun 12, 2024
2 parents b096db3 + b06af14 commit 0d8425c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coveralls[yaml]==4.0.0
pytest==8.2.0
pytest==8.2.2
pytest-cov==5.0.0
pytest-mock==3.14.0
wptserve==4.0.2
48 changes: 24 additions & 24 deletions tests/remote/test_devedition.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@

@pytest.mark.ci_only
@pytest.mark.parametrize("args,url", [
({'application': 'devedition', 'platform': 'linux', 'version': '60.0b1'},
'devedition/releases/60.0b1/linux-i686/en-US/firefox-60.0b1.tar.bz2'),
({'application': 'devedition', 'platform': 'linux64', 'version': '60.0b1'},
'devedition/releases/60.0b1/linux-x86_64/en-US/firefox-60.0b1.tar.bz2'),
({'application': 'devedition', 'platform': 'mac', 'version': '60.0b1'},
'devedition/releases/60.0b1/mac/en-US/Firefox 60.0b1.dmg'),
({'application': 'devedition', 'platform': 'win32', 'version': '60.0b1'},
'devedition/releases/60.0b1/win32/en-US/Firefox Setup 60.0b1.exe'),
({'application': 'devedition', 'platform': 'win64', 'version': '60.0b1'},
'devedition/releases/60.0b1/win64/en-US/Firefox Setup 60.0b1.exe'),
({'application': 'devedition', 'platform': 'win32', 'version': '60.0b1', 'locale': 'de'},
'devedition/releases/60.0b1/win32/de/Firefox Setup 60.0b1.exe'),
({'application': 'devedition', 'platform': 'linux', 'version': '128.0b1'},
'devedition/releases/128.0b1/linux-i686/en-US/firefox-128.0b1.tar.bz2'),
({'application': 'devedition', 'platform': 'linux64', 'version': '128.0b1'},
'devedition/releases/128.0b1/linux-x86_64/en-US/firefox-128.0b1.tar.bz2'),
({'application': 'devedition', 'platform': 'mac', 'version': '128.0b1'},
'devedition/releases/128.0b1/mac/en-US/Firefox 128.0b1.dmg'),
({'application': 'devedition', 'platform': 'win32', 'version': '128.0b1'},
'devedition/releases/128.0b1/win32/en-US/Firefox Setup 128.0b1.exe'),
({'application': 'devedition', 'platform': 'win64', 'version': '128.0b1'},
'devedition/releases/128.0b1/win64/en-US/Firefox Setup 128.0b1.exe'),
({'application': 'devedition', 'platform': 'win32', 'version': '128.0b1', 'locale': 'de'},
'devedition/releases/128.0b1/win32/de/Firefox Setup 128.0b1.exe'),
])
def test_release_scraper(tmpdir, args, url):
"""Test release scraper against the remote server."""
Expand All @@ -39,20 +39,20 @@ def test_release_scraper(tmpdir, args, url):

@pytest.mark.ci_only
@pytest.mark.parametrize("args,url", [
({'application': 'devedition', 'platform': 'linux', 'version': '60.0b1', 'build_number': 3},
'devedition/candidates/60.0b1-candidates/build3/linux-i686/en-US/firefox-60.0b1.tar.bz2'),
({'application': 'devedition', 'platform': 'linux64', 'version': '60.0b1', 'build_number': 3},
'devedition/candidates/60.0b1-candidates/build3/linux-x86_64/en-US/firefox-60.0b1.tar.bz2'), # noqa
({'application': 'devedition', 'platform': 'mac', 'version': '60.0b1', 'build_number': 3},
'devedition/candidates/60.0b1-candidates/build3/mac/en-US/Firefox 60.0b1.dmg'),
({'application': 'devedition', 'platform': 'win32', 'version': '60.0b1', 'build_number': 3},
'devedition/candidates/60.0b1-candidates/build3/win32/en-US/Firefox Setup 60.0b1.exe'),
({'application': 'devedition', 'platform': 'mac', 'version': '60.0b1', 'build_number': 3,
({'application': 'devedition', 'platform': 'linux', 'version': '128.0b1', 'build_number': 1},
'devedition/candidates/128.0b1-candidates/build1/linux-i686/en-US/firefox-128.0b1.tar.bz2'),
({'application': 'devedition', 'platform': 'linux64', 'version': '128.0b1', 'build_number': 1},
'devedition/candidates/128.0b1-candidates/build1/linux-x86_64/en-US/firefox-128.0b1.tar.bz2'), # noqa
({'application': 'devedition', 'platform': 'mac', 'version': '128.0b1', 'build_number': 1},
'devedition/candidates/128.0b1-candidates/build1/mac/en-US/Firefox 128.0b1.dmg'),
({'application': 'devedition', 'platform': 'win32', 'version': '128.0b1', 'build_number': 1},
'devedition/candidates/128.0b1-candidates/build1/win32/en-US/Firefox Setup 128.0b1.exe'),
({'application': 'devedition', 'platform': 'mac', 'version': '128.0b1', 'build_number': 1,
'locale': 'de'},
'devedition/candidates/60.0b1-candidates/build3/mac/de/Firefox 60.0b1.dmg'),
({'application': 'devedition', 'platform': 'mac', 'version': '60.0b1', 'build_number': 3,
'devedition/candidates/128.0b1-candidates/build1/mac/de/Firefox 128.0b1.dmg'),
({'application': 'devedition', 'platform': 'mac', 'version': '128.0b1', 'build_number': 1,
'extension': 'json'},
'devedition/candidates/60.0b1-candidates/build3/mac/en-US/firefox-60.0b1.json'),
'devedition/candidates/128.0b1-candidates/build1/mac/en-US/firefox-128.0b1.json'),
])
def test_candidate_scraper(tmpdir, args, url):
"""Test release candidate scraper against the remote server."""
Expand Down

0 comments on commit 0d8425c

Please sign in to comment.