Fixes #13666: Fix behavior for reports without test methods (#13667)

This commit is contained in:
JCWasmx86
2023-09-26 16:41:09 +02:00
committed by GitHub
parent 27297c7556
commit e67624f042
3 changed files with 13 additions and 5 deletions

View File

@@ -106,8 +106,6 @@ class Report(object):
'failure': 0,
'log': [],
}
if not test_methods:
raise Exception("A report must contain at least one test method.")
self.test_methods = test_methods
@classproperty