##// END OF EJS Templates
tests: Add new attribute `is_shadow_repo` to test dummy extra data.
Martin Bornhold -
r909:22de0b38 default
parent child Browse files
Show More
@@ -45,6 +45,7 b' def scm_extras(user_regular, repo_stub):'
45 'make_lock': None,
45 'make_lock': None,
46 'locked_by': [None],
46 'locked_by': [None],
47 'commit_ids': ['a' * 40] * 3,
47 'commit_ids': ['a' * 40] * 3,
48 'is_shadow_repo': False,
48 })
49 })
49 return extras
50 return extras
50
51
@@ -47,6 +47,7 b' class StubVCSController(simplevcs.Simple'
47 self.acl_repo_name = HG_REPO
47 self.acl_repo_name = HG_REPO
48 self.url_repo_name = HG_REPO
48 self.url_repo_name = HG_REPO
49 self.vcs_repo_name = HG_REPO
49 self.vcs_repo_name = HG_REPO
50 self.is_shadow_repo = False
50
51
51 def _get_repository_name(self, environ):
52 def _get_repository_name(self, environ):
52 return HG_REPO
53 return HG_REPO
@@ -40,6 +40,7 b' def test_post_push_truncates_commits(use'
40 'make_lock': None,
40 'make_lock': None,
41 'locked_by': [None],
41 'locked_by': [None],
42 'commit_ids': ['abcde12345' * 4] * 30000,
42 'commit_ids': ['abcde12345' * 4] * 30000,
43 'is_shadow_repo': False,
43 }
44 }
44 extras = utils2.AttributeDict(extras)
45 extras = utils2.AttributeDict(extras)
45
46
General Comments 0
You need to be logged in to leave comments. Login now