def setUp(self): HuntUser.objects.all().delete() Landmark.objects.all().delete() Game.objects.all().delete() game = Game(name="game", running=False) game.save() lm = Landmark(name="dummy", clue="dummy", question="dummy", answer="dummy", order_num=-1) lm.save() self.maker = gamemaker.GameMaker() self.maker.make_team(["team1", "password1"]) self.t = team.Team() lm1 = Landmark(name="landmark1", clue="clue1", question="question1", answer="answer1", order_num=-1) lm2 = Landmark(name="landmark2", clue="clue2", question="question2", answer="answer2", order_num=-1) lm1.save() lm2.save()
def setUp(self): Landmark.objects.all().delete() lm = Landmark(name="dummy", clue="dummy", question="dummy", answer="dummy", order_num=-1) lm.save() self.maker1 = gamemaker.GameMaker()
def setUp(self): HuntUser.objects.all().delete() Landmark.objects.all().delete() Game.objects.all().delete() game = Game(name="game", running=False) game.save() lm = Landmark(name="dummy", clue="dummy", question="dummy", answer="dummy", order_num=-1) lm.save() self.maker = gamemaker.GameMaker()
def setUp(self): dummy_landmark = Landmark(name="dummy", clue="dummy", question="dummy", answer="dummy", order_num=-1) dummy_landmark.save() Game.objects.all().delete() game = Game(name="game", running=False) game.save() self.maker = gamemaker.GameMaker() self.maker.make_team(["team1", "password1"]) self.maker.make_team(["team2", "password1"]) self.maker.add_landmark(["landmark1", "clue1", "q1", "a1"]) self.maker.add_landmark(["landmark2", "clue2", "q2", "a2"]) self.maker.create_game(["landmark1", "landmark2"]) self.t = team.Team()
def setUp(self): Landmark.objects.all().delete() dummy_landmark = Landmark(name="dummy", clue="dummy", question="dummy", answer="dummy", order_num=-1) dummy_landmark.save() team1 = HuntUser(name="team1", password="******", current_landmark=dummy_landmark) team1.save() Game.objects.all().delete() self.game = Game(name="game", running=False) self.game.save() self.t = team.Team() self.maker = gamemaker.GameMaker()
def setUp(self): self.game_maker = gamemaker.GameMaker()