mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New config option max_csv_mb limiting size of CSV export - refs #266
This commit is contained in:
parent
619a9ddb33
commit
9d00718250
8 changed files with 89 additions and 29 deletions
|
|
@ -71,6 +71,13 @@ def app_client_larger_cache_size():
|
|||
})
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def app_client_csv_max_mb_one():
|
||||
yield from app_client(config={
|
||||
'max_csv_mb': 1,
|
||||
})
|
||||
|
||||
|
||||
def generate_compound_rows(num):
|
||||
for a, b, c in itertools.islice(
|
||||
itertools.product(string.ascii_lowercase, repeat=3), num
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue