def setUp(self):
        """setup"""
        self.user = User.objects.create_user("user", "*****@*****.**", password="******")
        profile = self.user.get_profile()
        profile.setup_profile = True
        profile.setup_complete = True
        profile.save()

        test_utils.enable_quest()
        challenge_mgr.register_page_widget("home", "home")

        self.client.login(username="******", password="******")
    def setUp(self):
        """setup"""
        self.user = User.objects.create_user("user",
                                             "*****@*****.**",
                                             password="******")
        profile = self.user.profile
        profile.setup_profile = True
        profile.setup_complete = True
        profile.save()

        test_utils.enable_quest()
        challenge_mgr.register_page_widget("home", "home")

        self.client.login(username="******", password="******")
    def setUp(self):
        """setup"""
        challenge_mgr.init()
        self.user = test_utils.setup_user(username="******", password="******")
        test_utils.set_competition_round()

        test_utils.enable_quest()
        challenge_mgr.register_page_widget("home", "home")
        challenge_mgr.register_page_widget("profile", "my_achievements")
        challenge_mgr.register_page_widget("profile", "my_commitments")

        from apps.managers.cache_mgr import cache_mgr
        cache_mgr.clear()

        self.client.login(username="******", password="******")
Exemple #4
0
    def setUp(self):
        """setup"""
        challenge_mgr.init()
        self.user = test_utils.setup_user(username="******", password="******")
        test_utils.set_competition_round()

        test_utils.enable_quest()
        challenge_mgr.register_page_widget("home", "home")
        challenge_mgr.register_page_widget("profile", "my_achievements")
        challenge_mgr.register_page_widget("profile", "my_commitments")

        from apps.managers.cache_mgr import cache_mgr
        cache_mgr.clear()

        self.client.login(username="******", password="******")