Allow test_doc_archives to run independently
When you run `test_doc_archives.test_parse_update_xml` outside the
test suite, the settings.ini file is not loaded. When you run it
together with all the other tests, it depends on the settings loaded
during another test.
This change loads the settings.ini file before each test in this file.
@@ -6,6 +6,11 @@ from aqt.archives import QtArchives
from aqt.helper import Settings
+@pytest.fixture(autouse=True)
+def setup():
+ Settings.load_settings(os.path.join(os.path.dirname(__file__), "data", "settings.ini"))
+
+
@pytest.mark.parametrize(
"os_name,version,target,datafile",
[("windows", "5.15.2", "doc", "windows-5152-src-doc-example-update.xml")],
