Example #1
0
 def test_build_project_tags_empty(self):
     dbStub.reset()
     dbStub.addResult([])
     t = Tags()
     data = t.build_project_tags(0)
     self.assertFalse(data)
     self.assertTrue(dbStub.closed)
Example #2
0
 def test_build_cloud_empty(self):
     dbStub.reset()
     dbStub.addResult([])
     t = Tags()
     data = t.build_cloud()
     self.assertFalse(data)
     self.assertTrue(dbStub.closed)
Example #3
0
 def test_build_project_tags_empty(self):
     dbStub.reset()
     dbStub.addResult([])
     t = Tags()
     data = t.build_project_tags(0)
     self.assertFalse(data)
     self.assertTrue(dbStub.closed)
Example #4
0
 def test_tag_id_empty(self):
     dbStub.reset()
     dbStub.addResult([])
     t = Tags()
     tag_id = t.tag_id('testi')
     self.assertEquals(tag_id, None)
     self.assertTrue(dbStub.closed)
Example #5
0
 def test_build_cloud_empty(self):
     dbStub.reset()
     dbStub.addResult([])
     t = Tags()
     data = t.build_cloud()
     self.assertFalse(data)
     self.assertTrue(dbStub.closed)
Example #6
0
 def test_tag_id_empty(self):
     dbStub.reset()
     dbStub.addResult([])
     t = Tags()
     tag_id = t.tag_id('testi')
     self.assertEquals(tag_id, None)
     self.assertTrue(dbStub.closed)
 def tearDown(self):
     dbStub.reset()
     userstoreStub.reset()
     self.cm = None
     self.req = None
     multiproject.common.projects.api.Projects.create_project = self.orig_create_project
     multiproject.common.projects.api.Projects.remove_project = self.orig_remove_project
     multiproject.common.projects.api.Projects.get_project = self.orig_get_project
     multiproject.core.permissions.CQDESuperUserStore.is_superuser = self.orig_is_superuser
 def tearDown(self):
     dbStub.reset()
     userstoreStub.reset()
     self.cm = None
     self.req = None
     multiproject.common.projects.api.Projects.create_project = self.orig_create_project
     multiproject.common.projects.api.Projects.remove_project = self.orig_remove_project
     multiproject.common.projects.api.Projects.get_project = self.orig_get_project
     multiproject.core.permissions.CQDESuperUserStore.is_superuser = self.orig_is_superuser
Example #9
0
 def tearDown(self):
     dbStub.reset()
     self.cm = None
     self.req = None
 def tearDown(self):
     dbStub.reset()
     self.cm = None
     self.req = None
     CQDECategoryStore().bind_category_project = self.orig_bind
     CQDECategoryStore().unbind_category_project = self.orig_unbind
Example #11
0
 def tearDown(self):
     dbStub.reset()
     userstoreStub.reset()
     conf.use_test_db(False)
Example #12
0
 def tearDown(self):
     dbStub.reset()
     userstoreStub.reset()
     conf.use_test_db(False)
 def tearDown(self):
     self.cm = None
     self.req = None
     userstoreStub.reset()
     dbStub.reset()
Example #14
0
 def tearDown(self):
     dbStub.reset()
 def tearDown(self):
     dbStub.reset()
     self.cm = None
     self.req = None
     CQDECategoryStore().bind_category_project = self.orig_bind
     CQDECategoryStore().unbind_category_project = self.orig_unbind
Example #16
0
 def tearDown(self):
     dbStub.reset()
     self.cm = None
     self.req = None
     Tags.add = self.orig_add
     Tags.remove = self.orig_remove
Example #17
0
 def tearDown(self):
     dbStub.reset()
Example #18
0
 def tearDown(self):
     dbStub.reset()
     self.cm = None
     self.req = None
 def tearDown(self):
     dbStub.reset()
     self.cm = None
     self.req = None
     Tags.add = self.orig_add
     Tags.remove = self.orig_remove