Skip to content

tests,test_ids: Don't rely on having a 'data' dir

Let's rewrite the test in a way that it won't rely on 'data' dir, but also on the entity type to do the split and check the filename.

By doing this, we can easily extend the very same test, in the future, for other entities type and we also ensure that we can run our test suite against an installed version of osinfo-db, by doing:

INTERNAL_OSINFO_DB_DATA_DIR="/path/to/installed/db \
INTERNAL_OSINFO_DB_DATA_SRC_DIR="/path/to/installed/db \
pytest-3

Signed-off-by: Fabiano Fidêncio fidencio@redhat.com

Merge request reports