Fixed test_max_csv_mb test that I just broke, refs #1063

pull/1065/head
Simon Willison 2020-10-29 15:58:40 -07:00
rodzic 178b7e8749
commit 1a861be19e
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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