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
def test_basic_db_operations(): db = DB() tab = db.create_table("test") tab.insert(Row(name="jon", age="34")) assert tab._total == 1