Skip to content

Commit 4cc5db6

Browse files
committed
Fix missing coverage
1 parent dfe60b2 commit 4cc5db6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_filters.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ async def test_filter_contains(db: AsyncSession, sample_ins: list[Ins], crud_ins
157157
async def test_filter_match(db: AsyncSession, sample_ins: list[Ins], crud_ins: CRUDPlus[Ins]):
158158
try:
159159
results = await crud_ins.select_models(db, name__match='item')
160-
assert isinstance(results, list)
161-
except Exception as e: # pragma: no cover
162-
# Match operator may not be supported by all databases (e.g., SQLite without extensions)
160+
assert len(results) >= 0
161+
except Exception as e:
163162
assert 'match' in str(e).lower() or 'not supported' in str(e).lower()
164163

165164

0 commit comments

Comments
 (0)