#13666: Add is_valid property to Report class

This commit is contained in:
Jeremy Stretch
2023-09-26 10:53:38 -04:00
parent e67624f042
commit f9ceaad284
3 changed files with 24 additions and 13 deletions

View File

@@ -135,6 +135,13 @@ class Report(object):
def source(self):
return inspect.getsource(self.__class__)
@property
def is_valid(self):
"""
Indicates whether the report can be run.
"""
return bool(self.test_methods)
#
# Logging methods
#