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

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

 



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@xxxxxxxxxx>
---
 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

_______________________________________________
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