mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed test_max_csv_mb test that I just broke, refs #1063
This commit is contained in:
parent
178b7e8749
commit
1a861be19e
1 changed files with 4 additions and 2 deletions
|
|
@ -130,8 +130,10 @@ def test_csv_with_non_ascii_characters(app_client):
|
||||||
|
|
||||||
def test_max_csv_mb(app_client_csv_max_mb_one):
|
def test_max_csv_mb(app_client_csv_max_mb_one):
|
||||||
response = app_client_csv_max_mb_one.get(
|
response = app_client_csv_max_mb_one.get(
|
||||||
"/fixtures.csv?sql=select+randomblob(10000)+"
|
(
|
||||||
"from+compound_three_primary_keys&_stream=1&_size=max"
|
"/fixtures.csv?sql=select+'{}'+"
|
||||||
|
"from+compound_three_primary_keys&_stream=1&_size=max"
|
||||||
|
).format("abcdefg" * 10000)
|
||||||
)
|
)
|
||||||
# It's a 200 because we started streaming before we knew the error
|
# It's a 200 because we started streaming before we knew the error
|
||||||
assert response.status == 200
|
assert response.status == 200
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue