Test for --no-detect-types

This commit is contained in:
Simon Willison 2023-07-24 16:06:24 -07:00
commit 7c92cbc499

View file

@ -113,6 +113,15 @@ def make_format_test(content, arg):
should_error=True,
expected_table_json=None,
),
# --no-detect-types
InsertTest(
input_data=SIMPLE_CSV,
cmd_args=["--no-detect-types", "--create"],
table_exists=False,
expected_output="Inserting rows\n",
should_error=False,
expected_table_json=[{"rowid": 1, "a": "1", "b": "2", "c": "3"}],
),
# Existing table, conflicting pk
InsertTest(
input_data=SIMPLE_CSV,