The existing tests in test_doc_archives.py don't actually test the
SrcDocExamplesArchives object; for some reason, they just test
QtArchives. The old tests make it hard to change the behavior of
QtArchives without causing these tests to fail.
This change alters these tests so that they use SrcDocExamplesArchives,
which is otherwise untested. It also changes the name of the "arch"
variable to "flavor", which is more accurate for the
SrcDocExamplesArchives class. It also adds tests for the untested
flavors, "src" and "examples".
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.
* Use global variable to hold Settings
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* Settings global instance to hold configurations
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* Revert to Settings class to helper module
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* Revert Settings class variables
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* PEP8
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* CI: change actions to use macos-11
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* Revert "CI: change actions to use macos-11"
CI: macos-11 is just for private preview
This reverts commit f1d576f4bf.