Apply suggestion from @gemini-code-assist[bot]
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -78,9 +78,9 @@ class TestFilterDealsByCriteria:
|
|||||||
def test_filter_by_property_type_partial_match(self, sample_deals):
|
def test_filter_by_property_type_partial_match(self, sample_deals):
|
||||||
"""Test filtering by partial property type (substring)."""
|
"""Test filtering by partial property type (substring)."""
|
||||||
result = filter_deals_by_criteria(sample_deals, property_type="דירה")
|
result = filter_deals_by_criteria(sample_deals, property_type="דירה")
|
||||||
# Should match only "דירה" exactly (not "דירת גג" because "דירה" != "דירת")
|
# Should match "דירה" and "דירת גג" via substring match.
|
||||||
assert len(result) == 2
|
assert len(result) == 3
|
||||||
assert set(d.objectid for d in result) == {1, 4}
|
assert set(d.objectid for d in result) == {1, 2, 4}
|
||||||
|
|
||||||
def test_filter_by_property_type_case_insensitive(self, sample_deals):
|
def test_filter_by_property_type_case_insensitive(self, sample_deals):
|
||||||
"""Test that property type filtering is case-insensitive."""
|
"""Test that property type filtering is case-insensitive."""
|
||||||
|
|||||||
Reference in New Issue
Block a user