def example_report(): return report.TestReport( name="Interactive API Test", uid="Interactive API Test", entries=[ report.TestGroupReport( name="MTest1", uid="MTest1", category="multitest", entries=[ report.TestGroupReport( name="Suite1", uid="MT1Suite1", category="suite", entries=[ report.TestCaseReport( name="TestCase1", uid="MT1S1TC1" ) ], ) ], ) ], )
def example_report(): """Create a new report skeleton.""" return report.TestReport( name="Interactive API Test", uid="Interactive API Test", entries=[ report.TestGroupReport( name="MTest1", uid="MTest1", category=report.ReportCategories.MULTITEST, env_status=entity.ResourceStatus.STOPPED, parent_uids=["Interactive API Test"], entries=[ report.TestGroupReport( name="Suite1", uid="MT1Suite1", category=report.ReportCategories.TESTSUITE, parent_uids=["Interactive API Test", "MTest1"], entries=[ report.TestCaseReport( name="TestCase1", uid="MT1S1TC1", parent_uids=[ "Interactive API Test", "MTest1", "MT1Suite1", ], ), report.TestGroupReport( name="ParametrizedTestCase", uid="MT1S1TC2", category=( report.ReportCategories.PARAMETRIZATION), parent_uids=[ "Interactive API Test", "MTest1", "MT1Suite1", ], entries=[ report.TestCaseReport( name="ParametrizedTestCase_0", uid="MT1S1TC2_0", parent_uids=[ "Interactive API Test", "MTest1", "MT1Suite1", "MT1S1TC2", ], ), report.TestCaseReport( name="ParametrizedTestCase_1", uid="MT1S1TC2_1", parent_uids=[ "Interactive API Test", "MTest1", "MT1Suite1", "MT1S1TC2", ], ), report.TestCaseReport( name="ParametrizedTestCase_2", uid="MT1S1TC2_2", parent_uids=[ "Interactive API Test", "MTest1", "MT1Suite1", "MT1S1TC2", ], ), ], ), ], ) ], ) ], )