##// END OF EJS Templates
tests: Make return values of stub vcs controller editable.
Martin Bornhold -
r912:04974cb2 default
parent child Browse files
Show More
@@ -44,16 +44,15 b' class StubVCSController(simplevcs.Simple'
44
44
45 def __init__(self, *args, **kwargs):
45 def __init__(self, *args, **kwargs):
46 super(StubVCSController, self).__init__(*args, **kwargs)
46 super(StubVCSController, self).__init__(*args, **kwargs)
47 self.acl_repo_name = HG_REPO
47 self._action = 'pull'
48 self.url_repo_name = HG_REPO
48 self._name = HG_REPO
49 self.vcs_repo_name = HG_REPO
49 self.set_repo_names(None)
50 self.is_shadow_repo = False
51
50
52 def _get_repository_name(self, environ):
51 def _get_repository_name(self, environ):
53 return HG_REPO
52 return self._name
54
53
55 def _get_action(self, environ):
54 def _get_action(self, environ):
56 return "pull"
55 return self._action
57
56
58 def _create_wsgi_app(self, repo_path, repo_name, config):
57 def _create_wsgi_app(self, repo_path, repo_name, config):
59 def fake_app(environ, start_response):
58 def fake_app(environ, start_response):
General Comments 0
You need to be logged in to leave comments. Login now