Exemplo n.º 1
0
    def create_test_binary_goal(self):
        goal = Goal(setup.get_test_user(), "Test Binary goal",
                    "Have you created a goal today?", "weekly", 7, "binary",
                    "daily")

        goal.persist()

        return goal
Exemplo n.º 2
0
    def create_test_numeric_goal(self):
        goal = Goal(setup.get_test_user(), "Test Numeric goal",
                    "How many goals have you created today?", "weekly", 7,
                    "numeric", "daily")

        goal.persist()

        return goal
Exemplo n.º 3
0
    def create_test_binary_goal(self):
        goal = Goal(setup.get_test_user(), 
            "Test Binary goal", 
            "Have you created a goal today?", 
            "weekly", 
            7, 
            "binary", 
            "daily")

        goal.persist()

        return goal
Exemplo n.º 4
0
    def create_test_numeric_goal(self):
        goal = Goal(setup.get_test_user(), 
            "Test Numeric goal", 
            "How many goals have you created today?", 
            "weekly", 
            7, 
            "numeric", 
            "daily")

        goal.persist()

        return goal
Exemplo n.º 5
0
 def setUp(self):
     User.query.delete()
     self.new_user = setup.get_test_user()
Exemplo n.º 6
0
 def setUp(self):
     User.query.delete()
     self.new_user = setup.get_test_user()