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

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



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

Signed-off-by: Cole Robinson <crobinso 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()
 
 
- 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


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