summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/tests/unit/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/tests/unit/handlers')
-rw-r--r--testapi/opnfv_testapi/tests/unit/handlers/test_result.py1
-rw-r--r--testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_result.py b/testapi/opnfv_testapi/tests/unit/handlers/test_result.py
index bd482a6..ac74741 100644
--- a/testapi/opnfv_testapi/tests/unit/handlers/test_result.py
+++ b/testapi/opnfv_testapi/tests/unit/handlers/test_result.py
@@ -52,6 +52,7 @@ class Details(object):
class TestResultBase(base.TestBase):
+ @executor.mock_valid_lfid()
def setUp(self):
super(TestResultBase, self).setUp()
self.pod = self.pod_d.name
diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py b/testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py
index d5e32e3..643057c 100644
--- a/testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py
+++ b/testapi/opnfv_testapi/tests/unit/handlers/test_testcase.py
@@ -57,21 +57,26 @@ class TestCaseBase(base.TestBase):
self.assertIsNotNone(new._id)
self.assertIsNotNone(new.creation_date)
+ @executor.mock_valid_lfid()
def create_d(self):
return super(TestCaseBase, self).create_d(self.project)
+ @executor.mock_valid_lfid()
def create_e(self):
return super(TestCaseBase, self).create_e(self.project)
def get(self, case=None):
return super(TestCaseBase, self).get(self.project, case)
+ @executor.mock_valid_lfid()
def create(self, req=None, *args):
return super(TestCaseBase, self).create(req, self.project)
+ @executor.mock_valid_lfid()
def update(self, new=None, case=None):
return super(TestCaseBase, self).update(new, self.project, case)
+ @executor.mock_valid_lfid()
def delete(self, case):
return super(TestCaseBase, self).delete(self.project, case)