kopia lustrzana https://github.com/simonw/datasette
Fixed test_max_csv_mb test that I just broke, refs #1063
rodzic
178b7e8749
commit
1a861be19e
|
@ -130,8 +130,10 @@ def test_csv_with_non_ascii_characters(app_client):
|
|||
|
||||
def test_max_csv_mb(app_client_csv_max_mb_one):
|
||||
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
|
||||
assert response.status == 200
|
||||
|
|
Ładowanie…
Reference in New Issue