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
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
def setUp(self): User.query.delete() self.new_user = setup.get_test_user()