mirror of
https://github.com/simonw/dclient.git
synced 2026-07-24 18:04:33 +02:00
Test for --no-detect-types
This commit is contained in:
parent
6e90f280d1
commit
7c92cbc499
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue