mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
test_duplicate_fails_if_table_does_not_exist, refs #449
This commit is contained in:
parent
b366e68deb
commit
4af4762521
1 changed files with 6 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import datetime
|
||||
import pytest
|
||||
|
||||
|
||||
def test_duplicate(fresh_db):
|
||||
|
|
@ -34,3 +35,8 @@ def test_duplicate(fresh_db):
|
|||
{"name": "bool_col", "type": "INT"},
|
||||
{"name": "datetime_col", "type": "TEXT"},
|
||||
] == [{"name": col.name, "type": col.type} for col in table2.columns]
|
||||
|
||||
|
||||
def test_duplicate_fails_if_table_does_not_exist(fresh_db):
|
||||
with pytest.raises(AssertionError):
|
||||
fresh_db["not_a_table"].duplicate("duplicated")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue