diff options
author | thuva4 <tharma.thuva@gmail.com> | 2017-11-14 15:38:56 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2017-11-14 15:38:56 +0530 |
commit | 265e10a036b545d9d4e15bebef17e38e4b013af3 (patch) | |
tree | 253f52de1842ec2ca3dc5e33d381f6108c4c39ab /testapi/opnfv_testapi/tests/unit/handlers/test_base.py | |
parent | 3b3477d3f632208d99fe2ab71679ab84b618855a (diff) |
Create functionality and e2e tests for project
Implemented the create function for the projects.
Wrote the e2e tests for the create function.
Change-Id: Iceac650573ca31b6246350c4d60033b42e0ffb0f
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/tests/unit/handlers/test_base.py')
-rw-r--r-- | testapi/opnfv_testapi/tests/unit/handlers/test_base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/tests/unit/handlers/test_base.py b/testapi/opnfv_testapi/tests/unit/handlers/test_base.py index b7fabb9..eb147cc 100644 --- a/testapi/opnfv_testapi/tests/unit/handlers/test_base.py +++ b/testapi/opnfv_testapi/tests/unit/handlers/test_base.py @@ -16,6 +16,7 @@ from tornado import testing from opnfv_testapi.models import base_models from opnfv_testapi.models import pod_models +from opnfv_testapi.models import project_models from opnfv_testapi.tests.unit import fake_pymongo @@ -43,6 +44,12 @@ class TestBase(testing.AsyncHTTPTestCase): _id=str(ObjectId()), owner='ValidUser', create_date=str(datetime.now())) + self.project_e = project_models.Project( + name='functest', + description='functest test', + _id=str(ObjectId()), + create_date=str(datetime.now())) + self.req_d = None self.req_e = None self.addCleanup(self._clear) @@ -53,6 +60,7 @@ class TestBase(testing.AsyncHTTPTestCase): 'groups': [ 'opnfv-testapi-users', 'opnfv-gerrit-functest-submitters', + 'opnfv-gerrit-qtip-submitters', 'opnfv-gerrit-qtip-contributors'] }) |