def setUp(self):
        create_fixtures()
        self.client = Client()
        self.assertTrue(self.client.login(username="******", password="******"))

        user = User.objects.get(username="******")
        mission = Mission.objects.untranslated().get(pk=1)
        activity_type = PlayerActivityType.objects.get(type="single_response")
        self.single_response = PlayerActivity.objects.language('en-us').create(
            creationUser=user, mission=mission, type=activity_type)
    def setUp(self):
        create_fixtures()
        self.client = Client()
        self.assertTrue(self.client.login(username="******", password="******"))

        user = User.objects.get(username="******")
        mission = Mission.objects.untranslated().get(pk=1)
        activity_type = PlayerActivityType.objects.get(type="map")
        self.map = PlayerActivity.objects.language('en-us').create(
            creationUser=user, mission=mission, type=activity_type)
        # Attention: to make the tests pass we need both PlayerActivity and PlayerMapActivity
        # Is this correct?
        PlayerMapActivity.objects.language('en-us').create(creationUser=user,
                                                           mission=mission,
                                                           type=activity_type)
Exemple #3
0
 def setUp(self):
     create_fixtures()
     self.client = Client()
     self.assertTrue(self.client.login(username="******", password="******"))
Exemple #4
0
 def setUp(self):
     create_fixtures()