Пример #1
0
def db():
    # TODO put this in a fixtures file, i'm going to need it everywhere
    db = DB()
    test = db.create_table("test")
    test.insert(Row(name="jon", age=34))

    return db
Пример #2
0
def test_basic_db_operations():
    db = DB()
    tab = db.create_table("test")

    tab.insert(Row(name="jon", age="34"))

    assert tab._total == 1
Пример #3
0
def db():
    # TODO put this in a fixtures file, i'm going to need it everywhere
    db = DB()
    test = db.create_table("test")
    test.insert(Row(name="jon", age=34))

    return db