Skip to content

Commit

Permalink
Fixed test_max_csv_mb test that I just broke, refs #1063
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Oct 29, 2020
1 parent 178b7e8 commit 1a861be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a861be

Please sign in to comment.