mozilla / mozdownload

Easy to use download tool and API for different types of Firefox and Thunderbird builds
http://pypi.python.org/pypi/mozdownload
Other
70 stars 77 forks source link

Download only with the major number #670

Closed ghost closed 6 months ago

ghost commented 6 months ago

Fixes #668

Refactored query_versionsto allow for the regex to match against explicit version numbers and associated patterns (eg. "108", "108.*")

ghost commented 6 months ago

@whimboo , I'm seeing a bit peculiar test result, which is that all the tests for thunderbird v17 fail. All the other tests pass. But they fail for this version. Additionally, the script returns an ESR version. Please see the log:

test_release_candidate_scraper.py::test_scraper[args10-thunderbird-17.0-build3.en-US.linux.tar.bz2-thunderbird/candidates/17.0-candidates/build3/linux-i686/en-US/thunderbird-17.0.tar.bz2] - AssertionError: assert '/private/var...linux.tar.bz2' == '/private/var...linux.tar.bz2'
test_release_candidate_scraper.py::test_scraper[args11-thunderbird-17.0-build3.en-US.linux64.tar.bz2-thunderbird/candidates/17.0-candidates/build3/linux-x86_64/en-US/thunderbird-17.0.tar.bz2] - AssertionError: assert '/private/var...nux64.tar.bz2' == '/private/var...nux64.tar.bz2'
test_release_candidate_scraper.py::test_scraper[args12-thunderbird-17.0-build3.en-US.mac.dmg-thunderbird/candidates/17.0-candidates/build3/mac/en-US/Thunderbird 17.0.dmg] - AssertionError: assert '/private/var...en-US.mac.dmg' == '/private/var...en-US.mac.dmg'
test_release_candidate_scraper.py::test_scraper[args13-thunderbird-17.0-build3.en-US.win32.exe-thunderbird/candidates/17.0-candidates/build3/win32/en-US/Thunderbird Setup 17.0.exe] - AssertionError: assert '/private/var...-US.win32.exe' == '/private/var...-US.win32.exe'
test_release_candidate_scraper.py::test_scraper[args14-thunderbird-17.0-build3.de.win32.exe-thunderbird/candidates/17.0-candidates/build3/win32/de/Thunderbird Setup 17.0.exe] - mozdownload.errors.NotFoundError: Specified build has not been found: http://127.0.0.1:8080/thunderbird/candidates/17.0.1esr-candidates/...

test_release_scraper.py::test_release_scraper[args14-thunderbird-17.0.en-US.win32.exe-thunderbird/releases/17.0/win32/en-US/Thunderbird Setup 17.0.exe] - AssertionError: assert '/private/var...-US.win32.exe' == '/private/var...-US.win32.exe'
test_release_scraper.py::test_release_scraper[args15-thunderbird-17.0.en-US.linux.tar.bz2-thunderbird/releases/17.0/linux-i686/en-US/thunderbird-17.0.tar.bz2] - AssertionError: assert '/private/var...linux.tar.bz2' == '/private/var...linux.tar.bz2'
test_release_scraper.py::test_release_scraper[args16-thunderbird-17.0.en-US.linux64.tar.bz2-thunderbird/releases/17.0/linux-x86_64/en-US/thunderbird-17.0.tar.bz2] - AssertionError: assert '/private/var...nux64.tar.bz2' == '/private/var...nux64.tar.bz2'
test_release_scraper.py::test_release_scraper[args17-thunderbird-17.0.en-US.mac.dmg-thunderbird/releases/17.0/mac/en-US/Thunderbird 17.0.dmg] - AssertionError: assert '/private/var...en-US.mac.dmg' == '/private/var...en-US.mac.dmg'
test_release_scraper.py::test_release_scraper[args18-thunderbird-17.0.de.win32.exe-thunderbird/releases/17.0/win32/de/Thunderbird Setup 17.0.exe] - mozdownload.errors.NotFoundError: Specified build has not been found: http://127.0.0.1:8080/thunderbird/releases/17.0.1esr/win32/de/