mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 13:14:37 +03:00
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user