[Libosinfo] [PATCH osinfo-db 00/15] tests: more tweaks

Cole Robinson crobinso at redhat.com
Mon Mar 25 14:32:04 UTC 2019


Another collection of test suite tweaks and improvements. FWIW
I have another small series on top of this that adds a script
which simplifies adding new test/isodata content, and it uses
some of the test suite changes here.

Thanks,
Cole

Cole Robinson (15):
  tests: test_isoinfo: Remove unused function
  tests: Rename test_validation -> test_schema
  tests: test_schema: Drop redundant parametrize ids=
  tests: Use 'osxml' as standard argument name
  tests: Move 'requests' usage to test_urls
  tests: test_urls: Combine the test cases
  tests: test_resources: consolidate to one test case
  tests: Sort input OS/files before testing
  tests: osinfo: Actually use _cache_property as a decorator
  tests: osinfo: Add a base class
  tests: osinfo: Absorb the initial XML parsing
  tests: test_devices: check for device name comment
  tests: test_isoinfo: improve output on failure
  tests: Use lxml
  tests: Move isodata parsing to isodata.py

 tests/isodata.py         |  91 ++++++++++++++++
 tests/osinfo.py          | 219 ++++++++++++++++++---------------------
 tests/test_devices.py    |  51 +++++++--
 tests/test_isoinfo.py    | 134 +++---------------------
 tests/test_resources.py  |  69 +++++-------
 tests/test_schema.py     |  18 ++++
 tests/test_urls.py       |  57 ++++++----
 tests/test_validation.py |  18 ----
 tests/util.py            |  67 ++++++++----
 9 files changed, 375 insertions(+), 349 deletions(-)
 create mode 100644 tests/isodata.py
 create mode 100644 tests/test_schema.py
 delete mode 100644 tests/test_validation.py

-- 
2.21.0




More information about the Libosinfo mailing list