Skip to content

tests: more changes/refactors

Pino Toscano requested to merge pinotree/osinfo-db:tests-more-changes into main
  • test_schema: move RelaxNG schema as fixture, rather than module variable
  • test_url: collect the URLs by schema, so each schema type can be tested separately
  • test_url: refactor UrlType as enum to simplify things a bit (see the associated Hack™ for it)
  • test_url: check also the content type for trees, even if it's a very broad text/html type
  • test_url: add a URL type for vhdx disk images, even if there are none currently in osinfo-db
  • test_url: drop the "generic" URL type, no more used and needed now
  • test_variants: check all the variants of images, medias, and trees (and not only the first), as supported by libosinfo
  • add a new test_datamaps to check for duplicate mappings in datamaps
  • reformat sources with black 23.3.0 (really few changes)

See the individual commit messages for more explanations. There should be no behaviour changes, and no issues were found due to the improved checks/tests.

Edited by Pino Toscano

Merge request reports

Loading