tests: Add new attribute is_shadow_repo to test dummy extra data.
This commit is contained in:
parent
2653ff980f
commit
3c6a97202a
3 changed files with 3 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ def scm_extras(user_regular, repo_stub):
|
|||
'make_lock': None,
|
||||
'locked_by': [None],
|
||||
'commit_ids': ['a' * 40] * 3,
|
||||
'is_shadow_repo': False,
|
||||
})
|
||||
return extras
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class StubVCSController(simplevcs.SimpleVCS):
|
|||
self.acl_repo_name = HG_REPO
|
||||
self.url_repo_name = HG_REPO
|
||||
self.vcs_repo_name = HG_REPO
|
||||
self.is_shadow_repo = False
|
||||
|
||||
def _get_repository_name(self, environ):
|
||||
return HG_REPO
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ def test_post_push_truncates_commits(user_regular, repo_stub):
|
|||
'make_lock': None,
|
||||
'locked_by': [None],
|
||||
'commit_ids': ['abcde12345' * 4] * 30000,
|
||||
'is_shadow_repo': False,
|
||||
}
|
||||
extras = utils2.AttributeDict(extras)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue