def test_pr_builds(self): self.init_pr_directory() org, repo = view_pr.org_repo('', app.app.config['default_org'], app.app.config['default_repo'], ) builds = view_pr.pr_builds(view_pr.pr_path(org, repo, '123', app.app.config['default_repo'], app.app.config['default_repo'], app.app.config['default_external_services']['gcs_pull_prefix'], )) self.assertEqual(builds, self.BUILDS)
def check(org, repo, pr, path): actual_path = view_pr.pr_path(org, repo, pr) self.assertEquals(actual_path, '%s/%s' % (view_base.PR_PREFIX, path))
def check(org, repo, pr, path): actual_path = view_pr.pr_path(org, repo, pr, 'kubernetes', 'kubernetes', 'pull_prefix') self.assertEquals(actual_path, '%s/%s' % ('pull_prefix', path))
def test_pr_builds(self): self.init_pr_directory() org, repo = view_pr.org_repo('') builds = view_pr.pr_builds(view_pr.pr_path(org, repo, '123')) self.assertEqual(builds, self.BUILDS)