def setUpTestData(cls): cls.admin = f.UserFactory() cls.admin_request = make_http_request( user=cls.admin, user_perm='management.change_testbuild') cls.staff = f.UserFactory() cls.staff_request = make_http_request(user=cls.staff) cls.product = f.ProductFactory() cls.another_product = f.ProductFactory() cls.build_1 = f.TestBuildFactory(product=cls.product) cls.build_2 = f.TestBuildFactory(product=cls.product) cls.build_3 = f.TestBuildFactory(product=cls.product)
def setUpTestData(cls): cls.product = f.ProductFactory(name='StarCraft') cls.builds_count = 3 cls.builds = [ f.TestBuildFactory(product=cls.product) for i in range(cls.builds_count) ]
def setUpTestData(cls): cls.user = f.UserFactory() cls.http_req = make_http_request(user=cls.user) cls.product = f.ProductFactory() cls.version = f.VersionFactory(product=cls.product) cls.build = f.TestBuildFactory(product=cls.product) cls.plan = f.TestPlanFactory( product=cls.product, product_version=cls.version, ) cls.plan_manager = f.UserFactory() cls.plan_default_tester = f.UserFactory() cls.tag_fedora = f.TestTagFactory(name='fedora') cls.tag_python = f.TestTagFactory(name='automation') cls.test_run = f.TestRunFactory( plan_text_version=1, notes='Running tests ...', product_version=cls.version, build=cls.build, plan=cls.plan, manager=cls.plan_manager, default_tester=cls.plan_default_tester, tag=[cls.tag_fedora, cls.tag_python] )
def setUpTestData(cls): cls.product = f.ProductFactory() cls.version = f.VersionFactory(value='0.1', product=cls.product) cls.build = f.TestBuildFactory(product=cls.product) cls.user = f.UserFactory() cls.test_run = f.TestRunFactory(manager=cls.user, default_tester=None, build=cls.build)
def setUpTestData(cls): cls.product = f.ProductFactory(name='Nitrate') cls.build = f.TestBuildFactory(product=cls.product) cls.user = f.UserFactory() cls.case_run_1 = f.TestCaseRunFactory(assignee=cls.user, build=cls.build) cls.case_run_2 = f.TestCaseRunFactory(assignee=cls.user, build=cls.build)
def setUpTestData(cls): cls.admin = f.UserFactory() cls.staff = f.UserFactory() cls.user = f.UserFactory() cls.admin_request = make_http_request(user=cls.admin, user_perm='testruns.change_testcaserun') cls.staff_request = make_http_request(user=cls.staff) cls.build = f.TestBuildFactory() cls.case_run_1 = f.TestCaseRunFactory() cls.case_run_2 = f.TestCaseRunFactory() cls.status_running = TestCaseRunStatus.objects.get(name='RUNNING')
def setUpTestData(cls): super().setUpTestData() cls.build = f.TestBuildFactory(product=cls.product) cls.test_run = f.TestRunFactory(product_version=cls.version, plan=cls.plan, manager=cls.tester, default_tester=cls.tester) cls.case_run = f.TestCaseRunFactory(assignee=cls.tester, tested_by=cls.tester, case=cls.case, run=cls.test_run, build=cls.build) cls.bz_tracker = f.IssueTrackerFactory(name='TestBZ')
def setUpTestData(cls): cls.manager = f.UserFactory(username='******') cls.product = f.ProductFactory(name='StarCraft') cls.build = f.TestBuildFactory(product=cls.product) cls.runs = [ f.TestRunFactory( summary='Test run for StarCraft: Init on Unknown environment', manager=cls.manager, build=cls.build, default_tester=None), f.TestRunFactory(summary='Test run for StarCraft: second one', manager=cls.manager, build=cls.build, default_tester=None), ]
def setUpTestData(cls): super().setUpTestData() cls.case_run_status_idle = TestCaseRunStatus.objects.get(name='IDLE') cls.build = f.TestBuildFactory(product=cls.product) case_run_creator = partial( f.TestCaseRunFactory, assignee=cls.tester, tested_by=cls.tester, build=cls.build, case_run_status=cls.case_run_status_idle) cls.test_run = f.TestRunFactory( product_version=cls.version, plan=cls.plan, build=cls.build, manager=cls.tester, default_tester=cls.tester) cls.case_run_1 = case_run_creator( run=cls.test_run, case=cls.case_1, sortkey=10) cls.case_run_2 = case_run_creator( run=cls.test_run, case=cls.case_2, sortkey=20) cls.case_run_3 = case_run_creator( run=cls.test_run, case=cls.case_3, sortkey=30) cls.test_run_1 = f.TestRunFactory( product_version=cls.version, plan=cls.plan, build=cls.build, manager=cls.tester, default_tester=cls.tester) cls.case_run_4 = case_run_creator( run=cls.test_run_1, case=cls.case_4, sortkey=10) cls.case_run_5 = case_run_creator( run=cls.test_run_1, case=cls.case_5, sortkey=20) cls.case_run_6 = case_run_creator( run=cls.test_run_1, case=cls.case_6, sortkey=30)
def setUpTestData(cls): super().setUpTestData() cls.case_run_status_idle = TestCaseRunStatus.objects.get(name='IDLE') cls.build = f.TestBuildFactory(product=cls.product) cls.test_run = f.TestRunFactory(product_version=cls.version, plan=cls.plan, build=cls.build, manager=cls.tester, default_tester=cls.tester) cls.case_run_1, cls.case_run_2, cls.case_run_3 = [ f.TestCaseRunFactory(assignee=cls.tester, tested_by=cls.tester, run=cls.test_run, build=cls.build, case_run_status=cls.case_run_status_idle, case=case, sortkey=i * 10) for i, case in enumerate((cls.case_1, cls.case_2, cls.case_3), 1) ]
def setUpTestData(cls): cls.product = f.ProductFactory() cls.build = f.TestBuildFactory(description='testing ...', product=cls.product)