Add a description field to teams.

This commit is contained in:
yackob03 2013-11-04 16:57:20 -05:00
parent 7991c3eff8
commit ac71822352
4 changed files with 7 additions and 4 deletions

View file

@ -156,7 +156,8 @@ if __name__ == '__main__':
'Repository owned by an org.', False,
[], (4, [], ['latest', 'prod']))
reader_team = model.create_team('Readers', org, 'member')
reader_team = model.create_team('readers', org, 'member',
'Readers of orgrepo.')
model.set_team_repo_permission(reader_team.name, org_repo.namespace,
org_repo.name, 'read')
model.add_user_to_team(new_user_2, reader_team)