[Libosinfo] [PATCH osinfo-db 02/15] tests: Rename test_validation -> test_schema

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


validation is a bit generic sounding, that's essentially what we
are doing in the 'resources' tests too. Rename the file and testcase
test_schema to make it more clear

Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 tests/{test_validation.py => test_schema.py} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename tests/{test_validation.py => test_schema.py} (94%)

diff --git a/tests/test_validation.py b/tests/test_schema.py
similarity index 94%
rename from tests/test_validation.py
rename to tests/test_schema.py
index 8c71454..73ad8bf 100644
--- a/tests/test_validation.py
+++ b/tests/test_schema.py
@@ -13,6 +13,6 @@ VALID = PARSER.relaxNGParse().relaxNGNewValidCtxt()
 
 
 @pytest.mark.parametrize("path", util.DataFiles.xmls(), ids=lambda path: path)
-def test_validation(path):
+def test_schema(path):
     doc = libxml2.parseFile(path)
     assert VALID.relaxNGValidateDoc(doc) == 0
-- 
2.21.0




More information about the Libosinfo mailing list