[Libosinfo] [PATCH osinfo-db 00/10] tests: misc improvements

Cole Robinson crobinso at redhat.com
Tue Mar 19 20:01:50 UTC 2019


This series is a handful of misc tests/ improvements

* Makes style generally pep8/pylint clean, at least with my local cfg
* Makes manual invocation of 'pytest-3' work
* Rearranges the internal API to cache our XML parsing to save some
  test time
* Reduce test_isoinfo full runtime by ~95%

Cole Robinson (10):
  tests: Fix pycodestyle/pylint warnings
  tests: Add license headers
  tests: Drop shebang lines
  tests: conftest: Set INTERNAL_OSINFO_DB_DATA_DIR
  tests: util: Add DataFiles class
  tests: util: Cache xml file list and parsed OS objects
  tests: Simplify pytest parameterize calls
  tests: test_isoinfo: don't log in match()
  tests: osinfo: Caching all XML property lookups
  tests: osinfo: use a compiled regex

 Makefile                 |  2 +-
 tests/__init__.py        |  2 +
 tests/conftest.py        | 18 ++++++++
 tests/osinfo.py          | 62 +++++++++++++++++----------
 tests/test_isoinfo.py    | 41 ++++++++----------
 tests/test_urls.py       | 17 ++++----
 tests/test_validation.py | 16 +++----
 tests/util.py            | 91 +++++++++++++++++++++-------------------
 8 files changed, 142 insertions(+), 107 deletions(-)
 create mode 100644 tests/conftest.py
 mode change 100644 => 100755 tests/test_validation.py

-- 
2.21.0




More information about the Libosinfo mailing list