Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ole
2026-05-18 21:31:52 +00:00
parent 6eedfffa4d
commit c9383788de
22 changed files with 1614 additions and 42 deletions
-8
View File
@@ -3,7 +3,6 @@ from finn_eiendom.eiendom_no import (
decode_unit_vector,
parse_eiendom_unit_json,
parse_similar_units_json,
resolve_unit_from_finn_url,
)
from tests.fixtures import (
SAMPLE_EIENDOM_SIMILAR_UNITS_JSON,
@@ -35,10 +34,3 @@ def test_parse_similar_units_json():
assert len(comps) == 2
assert comps[0].unit_code == "c-recent-1"
assert comps[1].selling_price == 7350000
def test_resolve_unit_from_finn_url():
unit_code = resolve_unit_from_finn_url(
"https://www.finn.no/realestate/homes/ad.html?finnkode=462400360"
)
assert unit_code == "462400360"