Skip to content

Commit fc6b362

Browse files
committed
tests: update search method test
1 parent 9255257 commit fc6b362

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_active_record.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from sqlactive.exceptions import (
2020
CompositePrimaryKeyError,
2121
ModelAttributeError,
22+
NoSearchableColumnsError,
2223
NoSearchableError,
2324
NoSettableError,
2425
RelationError,
@@ -596,6 +597,8 @@ async def test_search(self):
596597
User.search('John', columns=('age',))
597598
with self.assertRaises(NoSearchableError):
598599
User.search('John', columns=(User.age,))
600+
with self.assertRaises(NoSearchableColumnsError):
601+
Sell.search('lorem')
599602

600603
async def test_order_by(self):
601604
"""Test for ``order_by`` and ``sort`` functions."""

0 commit comments

Comments
 (0)