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()
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 + '/')
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()
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()