Пример #1
0
 def test_updateProjects_bad_schema(self):
     update = sm.ScenarioProject(project='functest').format()
     update['score'] = None
     return [update]
Пример #2
0
 def test_updateProjects_duplicated(self):
     update = sm.ScenarioProject(project='qtip').format()
     return [update, update]
Пример #3
0
 def test_updateProjects_succ(self):
     update = sm.ScenarioProject(project='qtip').format()
     self.req_d['installers'][0]['versions'][0]['projects'] = [update]
     return [update]
Пример #4
0
 def test_addProjects_bad_schema(self):
     add = sm.ScenarioProject(project='functest').format()
     add['score'] = None
     return [add]
Пример #5
0
 def test_addProjects_already_exist(self):
     add = sm.ScenarioProject(project='functest').format()
     return [add]
Пример #6
0
 def test_addProjects_succ(self):
     add = sm.ScenarioProject(project='qtip').format()
     self.req_d['installers'][0]['versions'][0]['projects'].append(add)
     return [add]