mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-11 02:54:23 +02:00
Prettier indentation for CREATE TABLE
This commit is contained in:
parent
919415e4e9
commit
ca225b02c0
2 changed files with 13 additions and 3 deletions
|
|
@ -28,6 +28,16 @@ def test_create_table(fresh_db):
|
|||
{"name": "bytes_col", "type": "BLOB"},
|
||||
{"name": "datetime_col", "type": "TEXT"},
|
||||
] == [{"name": col.name, "type": col.type} for col in table.columns]
|
||||
assert (
|
||||
"CREATE TABLE [test_table] (\n"
|
||||
" [text_col] TEXT,\n"
|
||||
" [float_col] FLOAT,\n"
|
||||
" [int_col] INTEGER,\n"
|
||||
" [bool_col] INTEGER,\n"
|
||||
" [bytes_col] BLOB,\n"
|
||||
" [datetime_col] TEXT\n"
|
||||
")"
|
||||
) == table.schema
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue