def build_init_test(self): print os.path.abspath(os.path.curdir) p = Projects('test_build') p.git_url = 'test/test_repo' p.group = 'test_group' p.version = '0.100.0' p.save() b = Builder('test_build') b.build_project(branch='master', release='experimental', version='0.100.1', commit=None) assert(False)
def build_init_test(self): print os.path.abspath(os.path.curdir) p = Projects('test_build') p.git_url = 'test/test_repo' p.group = 'test_group' p.version = '0.100.0' p.save() b = Builder(p.name) pre_build_id = BuildInfo(p) b.build_project(branch='master', release='testing', version='0.0.1', commit=None) assert( BuildInfo(p).build_id != pre_build_id)