[PATCH osinfo-db 03/15] tests: test_schema: Drop redundant parametrize ids=

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

 



If the input is a string it's already used as the id

Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
---
 tests/test_schema.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_schema.py b/tests/test_schema.py
index 73ad8bf..98f58ef 100644
--- a/tests/test_schema.py
+++ b/tests/test_schema.py
@@ -12,7 +12,7 @@ PARSER = libxml2.relaxNGNewParserCtxt(SCHEMA)
 VALID = PARSER.relaxNGParse().relaxNGNewValidCtxt()
 
 
-@pytest.mark.parametrize("path", util.DataFiles.xmls(), ids=lambda path: path)
+@pytest.mark.parametrize("path", util.DataFiles.xmls())
 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