summaryrefslogtreecommitdiff
path: root/tests/unit/misc/test_sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/misc/test_sql.py')
-rw-r--r--tests/unit/misc/test_sql.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/misc/test_sql.py b/tests/unit/misc/test_sql.py
index c8efe6ef6..5f14ebec4 100644
--- a/tests/unit/misc/test_sql.py
+++ b/tests/unit/misc/test_sql.py
@@ -176,6 +176,11 @@ def test_delete(qtbot):
assert not list(table)
+def test_delete_optional(qtbot):
+ table = sql.SqlTable('Foo', ['name', 'val'])
+ table.delete('name', 'doesnotexist', optional=True)
+
+
def test_len():
table = sql.SqlTable('Foo', ['name', 'val', 'lucky'])
assert len(table) == 0