mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-13 12:54:12 +02:00
parent
ebb04a97de
commit
25c632fbbc
2 changed files with 9 additions and 0 deletions
|
|
@ -20,6 +20,13 @@ def test_rows_from_file_detect_format(input, expected_format):
|
|||
assert rows_list == [{"id": "1", "name": "Cleo"}]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("input", (b"", b" \n\t"))
|
||||
def test_rows_from_file_empty_input(input):
|
||||
rows, format = rows_from_file(BytesIO(input))
|
||||
assert format == Format.CSV
|
||||
assert list(rows) == []
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"ignore_extras,extras_key,expected",
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue