launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #18337
[Merge] lp:~cjwatson/launchpad/testfix-git-ref-link into lp:launchpad
Colin Watson has proposed merging lp:~cjwatson/launchpad/testfix-git-ref-link into lp:launchpad.
Commit message:
Fix GitRef tests to account for display name change.
Requested reviews:
Colin Watson (cjwatson)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/testfix-git-ref-link/+merge/256934
Fix GitRef tests to account for display name change.
--
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== modified file 'lib/lp/code/model/tests/test_gitref.py'
--- lib/lp/code/model/tests/test_gitref.py 2015-04-13 19:02:15 +0000
+++ lib/lp/code/model/tests/test_gitref.py 2015-04-21 13:47:53 +0000
@@ -30,8 +30,9 @@
self.useFixture(FeatureFixture({GIT_FEATURE_FLAG: u"on"}))
[master, personal] = self.factory.makeGitRefs(
paths=[u"refs/heads/master", u"refs/heads/people/foo/bar"])
+ repo_path = master.repository.shortened_path
self.assertEqual(
- ["master", "people/foo/bar"],
+ [u"%s:master" % repo_path, "%s:people/foo/bar" % repo_path],
[ref.display_name for ref in (master, personal)])
References