ADRESE
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user