def setUpTestData(cls): cls.case_run_1 = TestCaseRunFactory() cls.case_run_2 = TestCaseRunFactory() testcaserun.attach_log(None, cls.case_run_1.pk, "Test logs", "http://www.google.com")
def setUp(self): testcaserun.attach_log(None, self.case_run.pk, 'Related issue', 'https://localhost/issue/1') self.link = self.case_run.links.all()[0]
def test_attach_log(self): url = "http://127.0.0.1/test/test-log.log" log = testcaserun.attach_log(None, self.case_run.pk, "UT test logs", url) self.assertIsNone(log)
def setUpTestData(cls): cls.case_run_1 = f.TestCaseRunFactory() cls.case_run_2 = f.TestCaseRunFactory() testcaserun.attach_log(None, cls.case_run_1.pk, "Test logs", "http://www.google.com")