Documentation for tracer mechanism

This commit is contained in:
Simon Willison 2020-09-07 14:54:07 -07:00
commit f12251092c
12 changed files with 68 additions and 22 deletions

View file

@ -41,5 +41,5 @@ def test_column_affinity(column_def, expected_type):
@pytest.mark.parametrize("column_def,expected_type", EXAMPLES)
def test_columns_dict(fresh_db, column_def, expected_type):
fresh_db.conn.execute("create table foo (col {})".format(column_def))
fresh_db.execute("create table foo (col {})".format(column_def))
assert {"col": expected_type} == fresh_db["foo"].columns_dict