reduce importance when computed from search rank

This commit is contained in:
Sarah Hoffmann
2024-02-09 09:16:11 +01:00
parent dc1baaa0af
commit c6d40d4bf4
5 changed files with 5 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ def test_search_details_minimal():
'admin_level': 15,
'names': {},
'localname': '',
'calculated_importance': pytest.approx(0.0000001),
'calculated_importance': pytest.approx(0.00001),
'rank_address': 30,
'rank_search': 30,
'isarea': False,

View File

@@ -37,7 +37,7 @@ def test_minimal_detailed_result():
assert res.lon == 23.1
assert res.lat == 0.5
assert res.calculated_importance() == pytest.approx(0.0000001)
assert res.calculated_importance() == pytest.approx(0.00001)
def test_detailed_result_custom_importance():
res = DetailedResult(SourceTable.PLACEX,