mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-02 15:34:10 +02:00
Use assertion to enforce <=999 columns
This commit is contained in:
parent
62d2922528
commit
0c1b8b7f96
2 changed files with 7 additions and 2 deletions
|
|
@ -530,7 +530,7 @@ def test_bulk_insert_more_than_999_values(fresh_db):
|
|||
def test_error_if_more_than_999_columns(fresh_db, num_columns, should_error):
|
||||
record = dict([("c{}".format(i), i) for i in range(num_columns)])
|
||||
if should_error:
|
||||
with pytest.raises(Exception):
|
||||
with pytest.raises(AssertionError):
|
||||
fresh_db["big"].insert(record)
|
||||
else:
|
||||
fresh_db["big"].insert(record)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue