def test_private_repository_build(self): Repository = self.project.get_vcs_backend() assert getattr(Repository, 'supports_private_repositories', False) d1 = self.project.commits.create(branch='dev', vcs_id='dev1', was_successful=True) build = d1.builds.create(configuration=self.build_config) builder = Builder(build) try: builder.setup_build() except BranchDoesNotExistError: pass
def __init__(self, build): self.exception = None Builder.__init__(self, build)