def fakeBuildStatus(master, builder, num): build_status = BuildStatus(builder.builder_status, master, num) build_status.started = 1422441500 build_status.finished = 1422441501.21 build_status.reason = 'A build was forced by user@localhost' build_status.slavename = 'build-slave-01' build_status.results = SUCCESS return build_status
def getCachedBuild(number): build_status = BuildStatus(self.builder_status, self.master, number) build_status.finished = 1422441501.21 build_status.reason = 'A build was forced by user@localhost' build_status.slavename = 'build-slave-01' build_status.results = SUCCESS build_status.sources = [ SourceStamp( branch='katana', codebase='katana-buildbot', revision='804d540eac7b90022130d34616a8f8336fe5691a') ] return build_status