← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~cjwatson/launchpad/testfix-git-shorten-codebrowse-url into lp:launchpad

 

Colin Watson has proposed merging lp:~cjwatson/launchpad/testfix-git-shorten-codebrowse-url into lp:launchpad.

Commit message:
Fix Git listing view tests to account for shortened codebrowse links.

Requested reviews:
  Colin Watson (cjwatson)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/testfix-git-shorten-codebrowse-url/+merge/264511

Fix Git listing view tests to account for shortened codebrowse links.
-- 
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== modified file 'lib/lp/code/browser/tests/test_gitlisting.py'
--- lib/lp/code/browser/tests/test_gitlisting.py	2015-06-25 07:39:40 +0000
+++ lib/lp/code/browser/tests/test_gitlisting.py	2015-07-13 00:35:07 +0000
@@ -62,8 +62,7 @@
             'https://git.launchpad.dev/%s' % self.target_path,
             soup.find(attrs={'class': 'https-url'}).find(text=True))
         self.assertEqual(
-            'https://git.launchpad.dev/~foowner/%s/+git/foo'
-            % self.target_path,
+            'https://git.launchpad.dev/%s' % self.target_path,
             soup.find(text='Browse the code').parent['href'])
 
         # The default repo's branches are shown, but not its tags.
@@ -210,7 +209,7 @@
             'https://git.launchpad.dev/~dev/%s' % self.target_path,
             soup.find(attrs={'class': 'https-url'}).find(text=True))
         self.assertEqual(
-            'https://git.launchpad.dev/~dev/%s/+git/foo' % self.target_path,
+            'https://git.launchpad.dev/~dev/%s' % self.target_path,
             soup.find(text='Browse the code').parent['href'])
 
         # The default repo's branches are shown.


References