We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
search
1 parent 9255257 commit fc6b362Copy full SHA for fc6b362
tests/test_active_record.py
@@ -19,6 +19,7 @@
19
from sqlactive.exceptions import (
20
CompositePrimaryKeyError,
21
ModelAttributeError,
22
+ NoSearchableColumnsError,
23
NoSearchableError,
24
NoSettableError,
25
RelationError,
@@ -596,6 +597,8 @@ async def test_search(self):
596
597
User.search('John', columns=('age',))
598
with self.assertRaises(NoSearchableError):
599
User.search('John', columns=(User.age,))
600
+ with self.assertRaises(NoSearchableColumnsError):
601
+ Sell.search('lorem')
602
603
async def test_order_by(self):
604
"""Test for ``order_by`` and ``sort`` functions."""
0 commit comments