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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux