コード例 #1
0
    def setUp(self):

        foxy = User.objects.create(username='******',
                                   email='*****@*****.**',
                                   password='******',
                                   first_name="Fox",
                                   last_name="Panks")
        self.joan = User.objects.create(username='******',
                                        email='*****@*****.**',
                                        password='******',
                                        first_name="Joan",
                                        last_name="Torche")
        ellen = User.objects.create(username='******',
                                    email='*****@*****.**',
                                    password='******',
                                    first_name="Ellen",
                                    last_name="Nice")

        # create team
        team = Team()
        team.owner = foxy
        team.name = "TestTeam"
        team.save()
        team.members = [foxy, self.joan, ellen]
        team.save()

        # create session
        session = Session()
        session.team = team
        session.name = "StandUp Test"
        session.is_open = True
        session.save()
コード例 #2
0
 def setUp(self):
     User.objects.create_superuser('admin', '*****@*****.**', 'meantime')
     nick   = User.objects.create_user('nick', '*****@*****.**', 'meantime')
     truman = User.objects.create_user('truman', '*****@*****.**', 'meantime')
     brian  = User.objects.create_user('brian', '*****@*****.**', 'meantime')
     # Team.objects.create(owner=nick, name='Test Team', members=[nick, truman, brian])
     team = Team()
     team.owner = nick
     team.name = "Test Team"
     team.save()
     team.members.add(nick.id, truman.id, brian.id)
     self.browser = webdriver.Firefox()
     self.browser.implicitly_wait(3)
     self.browser.get(self.live_server_url + '/')
コード例 #3
0
 def setUp(self):
     foxy = User.objects.create(username='******',
                                email='*****@*****.**',
                                password='******',
                                first_name="Fox",
                                last_name="Panks")
     team = Team()
     team.owner = foxy
     team.name = "TestTeam"
     team.save()
     team.members = [foxy]
     team.save()
コード例 #4
0
    def setUp(self):

        foxy = User.objects.create(username='******', email='*****@*****.**', password='******', first_name="Fox", last_name="Panks")
        self.joan = User.objects.create(username='******', email='*****@*****.**', password='******', first_name="Joan", last_name="Torche")
        ellen = User.objects.create(username='******', email='*****@*****.**', password='******', first_name="Ellen", last_name="Nice")

        # create team
        team = Team()
        team.owner=foxy
        team.name="TestTeam"
        team.save()
        team.members = [foxy, self.joan, ellen]
        team.save()

        # create session
        session = Session()
        session.team = team
        session.name = "StandUp Test"
        session.is_open = True
        session.save()