Exemple #1
0
def add_route():
    """Add an entry"""

    Entry.create(user=get_user(),
                 date=get_date(),
                 title=get_title(),
                 time_spent=get_time(),
                 notes=get_notes())
    clear_screen()
    input("The entry has been added!\n")
    return None
Exemple #2
0
    def setUpClass(cls):
        cls.test_db = SqliteDatabase(":memory:")
        test_db.bind_ctx(Entry)

        cls.test_db.connect()
        test_db.create_tables([Entry], safe=True)

        Entry.create(
            user='******',
            date='12/12/2002',
            title='Building additional pylons',
            time_spent=32,
            notes='' 
    )