def test_a_habit_due_for_completion(datasett):
    '\n    habit 2 is the due habit since its added second in the func/conftest\n    module.\n    :param datasett: from func/conftest\n    :return:\n    '
    session = datasett
    complete(2, session)
    result = session.query(HabitHistory.streak).filter((HabitHistory.habitid == 2)).all()
    assert (result == [(1,)])
habit 2 is the due habit since its added second in the func/conftest
module.
:param datasett: from func/conftest
:return:
def test_a_habit_due_for_completion(datasett):
    '\n    habit 2 is the due habit since its added second in the func/conftest\n    module.\n    :param datasett: from func/conftest\n    :return:\n    '
    session = datasett
    complete(2, session)
    result = session.query(HabitHistory.streak).filter((HabitHistory.habitid == 2)).all()
    assert (result == [(1,)])