Пример #1
0
 def create_fixtures(self):
     self.org = models.Organization(title=u"title", name=u"Test")
     self.org.owners.users.append(self.user)
     db.session.add(self.org)
     self.team = models.Team(userid=self.user.userid,
                             title=u"developers",
                             org=self.org)
     db.session.add(self.team)
     db.session.commit()
Пример #2
0
 def create_fixtures(self):
     self.org = models.Organization(title=u"test", name=u"Test")
     self.org.owners.users.append(self.user)
     db.session.add(self.org)
     self.team = models.Team(userid=self.user.userid,
                             title=u"developers",
                             org=self.org)
     db.session.add(self.team)
     self.team_client_permission = models.TeamClientPermissions(
         team=self.team, client=self.client, access_permissions=u"admin")
     db.session.add(self.team_client_permission)
     db.session.commit()