示例#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
示例#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
示例#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
示例#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
示例#5
0
 def setUp(self):
     User.query.delete()
     self.new_user = setup.get_test_user()
示例#6
0
 def setUp(self):
     User.query.delete()
     self.new_user = setup.get_test_user()