Skip to content

Commit

Permalink
WebStatus: Fix unittest (corect arg order in revlink callable)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sonestedt committed Mar 31, 2010
1 parent 730fff1 commit 9b4deb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions buildbot/test/unit/test_status_web_links.py
Expand Up @@ -39,10 +39,12 @@ def test_dict(self):
self._test(env)

def test_callable(self):
def my_revlink(repo, rev):
def my_revlink(rev, repo):
import urllib
if not repo or not rev:
if not rev:
return None
if not repo:
repo = 'main'
rev = urllib.quote(rev)
repo = urllib.quote(repo)
return 'http://myserver.net/repos/%s/rev/%s' % (repo, rev)
Expand Down

0 comments on commit 9b4deb8

Please sign in to comment.