def test_overdue_habit(datasett):
    "\n    please note the 'double tt' for datasett. This stands to differentiate\n    the functional test data from the data used for unit tests.\n    habit 1 is the overdue habit since its added first in the func/conftest\n    module.\n    :param datasett: from func/conftest\n    :return:\n    "
    session = datasett
    complete(1, session)
    result = session.query(HabitHistory.broken_count).filter((HabitHistory.habitid == 1)).all()
    assert (result == [(1,)])
please note the 'double tt' for datasett. This stands to differentiate
the functional test data from the data used for unit tests.
habit 1 is the overdue habit since its added first in the func/conftest
module.
:param datasett: from func/conftest
:return:
def test_overdue_habit(datasett):
    "\n    please note the 'double tt' for datasett. This stands to differentiate\n    the functional test data from the data used for unit tests.\n    habit 1 is the overdue habit since its added first in the func/conftest\n    module.\n    :param datasett: from func/conftest\n    :return:\n    "
    session = datasett
    complete(1, session)
    result = session.query(HabitHistory.broken_count).filter((HabitHistory.habitid == 1)).all()
    assert (result == [(1,)])