Commit Graph

12 Commits

Author SHA1 Message Date
Hiroshi Miura
638f94a690 archives: do not keep update.xml text in field
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2022-06-11 12:19:42 +09:00
David Dalcino
96af3eb393 Refactor: split QtArchive.archive_url into parts
This splits QtArchive.archive_url into two new datamembers: archive_path
and base_url. Ultimately, base_url should be removed from QtPackage
entirely.
2022-03-06 17:36:32 -08:00
David Dalcino
a2e6822e84 Test SrcDocExamplesArchives properly
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".
2021-08-23 10:57:20 -07:00
David Dalcino
9b12cf3ab7 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.
2021-08-23 10:57:18 -07:00
Hiroshi Miura
a767956a5b Coding style update by Black/isort
Change to max line length to 125

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-08-02 13:41:41 +09:00
Hiroshi Miura
ab823596dc Utilize dataclasses (#313)
* Utilize dataclasses

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* PEP8

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-07-15 08:08:53 +09:00
Hiroshi Miura
fac014216f Use global instance to hold Settings instead of Borg (#272)
* 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.
2021-06-19 10:43:19 +09:00
Hiroshi Miura
4c0638250c Move constants into settings.ini configuration
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-05-23 13:00:31 +09:00
Hiroshi Miura
d841741641 Reformat by black
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-04-02 12:20:10 +09:00
Hiroshi Miura
1ecd418acc Fix tests(more)
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-01-21 10:15:58 +09:00
Hiroshi Miura
7fd019e83b Fix for checks and tests
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-01-21 10:09:44 +09:00
Gamso
ef12e34f85 Add filter on doc and example packages when option "all_extra" is enabled.
Add test.
2020-11-24 19:48:03 +01:00