This commit is contained in:
Claude Agent
2026-04-08 22:55:09 +00:00
parent 5eba87976b
commit 90a4906d87
4 changed files with 20 additions and 6 deletions

View File

@@ -364,6 +364,12 @@ class TestAddressComponentParsing:
addr = self._parse_address(oracle_pool, "Strada Victoriei 10")
assert "VICTORIEI" in (addr["strada"] or ""), f"strada={addr['strada']}"
def test_blocuri_neighborhood_not_extracted_as_bloc(self, oracle_pool):
"""'Blocuri' in street name must NOT be parsed as BLOC keyword."""
result = self._parse_address(oracle_pool, "Str Principala Modarzau Blocuri", "Zemes", "Bacau")
assert "MODARZAU BLOCURI" in (result.get("strada") or ""), f"strada should contain MODARZAU BLOCURI, got {result}"
assert result.get("bloc") is None, f"bloc should be NULL for neighborhood name, got {result.get('bloc')}"
# ---------------------------------------------------------------------------
# Test regresie: comenzi existente în SQLite