Add an outside user to the orgrepo for the purpose of screenshots.
This commit is contained in:
parent
c076311799
commit
393534bfb4
2 changed files with 6 additions and 1 deletions
|
@ -144,6 +144,10 @@ def populate_database():
|
|||
reader.verified = True
|
||||
reader.save()
|
||||
|
||||
outside_org = model.create_user('outsideorg', 'password', 'no2@thanks.com')
|
||||
outside_org.verified = True
|
||||
outside_org.save()
|
||||
|
||||
__generate_repository(new_user_1, 'simple', 'Simple repository.', False,
|
||||
[], (4, [], ['latest', 'prod']))
|
||||
|
||||
|
@ -189,7 +193,8 @@ def populate_database():
|
|||
|
||||
org_repo = __generate_repository(org, 'orgrepo',
|
||||
'Repository owned by an org.', False,
|
||||
[], (4, [], ['latest', 'prod']))
|
||||
[(outside_org, 'read')],
|
||||
(4, [], ['latest', 'prod']))
|
||||
|
||||
reader_team = model.create_team('readers', org, 'member',
|
||||
'Readers of orgrepo.')
|
||||
|
|
Binary file not shown.
Reference in a new issue