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

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


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

Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 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()
 
 
- at pytest.mark.parametrize("path", util.DataFiles.xmls(), ids=lambda path: path)
+ at pytest.mark.parametrize("path", util.DataFiles.xmls())
 def test_schema(path):
     doc = libxml2.parseFile(path)
     assert VALID.relaxNGValidateDoc(doc) == 0
-- 
2.21.0




More information about the Libosinfo mailing list