Fix tests(more)

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2021-01-21 10:15:58 +09:00
parent 7fd019e83b
commit 1ecd418acc
2 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import os
import pytest import pytest
from aqt.archives import QtArchives from aqt.archives import QtArchives
from aqt.installer import BASE_URL
@pytest.mark.parametrize("os_name,version,target,datafile", [ @pytest.mark.parametrize("os_name,version,target,datafile", [
@@ -18,7 +19,7 @@ def test_parse_update_xml(monkeypatch, os_name, version, target, datafile):
monkeypatch.setattr(QtArchives, "_download_update_xml", _mock) monkeypatch.setattr(QtArchives, "_download_update_xml", _mock)
qt_archives = QtArchives(os_name, 'desktop', version, target) qt_archives = QtArchives(os_name, 'desktop', version, target, BASE_URL)
assert qt_archives.archives is not None assert qt_archives.archives is not None
# Get packages with all extra modules # Get packages with all extra modules

View File

@@ -21,7 +21,7 @@ def test_parse_update_xml(monkeypatch, os_name, version, target, datafile):
assert qt_archives.archives is not None assert qt_archives.archives is not None
# Get packages with all extra modules # Get packages with all extra modules
qt_archives_all_modules = QtArchives(os_name, 'desktop', version, target, None, ['all'], None, None, True) qt_archives_all_modules = QtArchives(os_name, 'desktop', version, target, BASE_URL, None, ['all'], None, True)
assert qt_archives_all_modules.archives is not None assert qt_archives_all_modules.archives is not None
# Extract all urls # Extract all urls