示例#1
0
 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)
示例#2
0
 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))
示例#3
0
 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))
示例#4
0
 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)