forked from hans/Nominatim
reduce importance when computed from search rank
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user