Sarah Hoffmann
9d0732a941
add fixtures for postcode, interpolation table creation and filling
2026-02-13 10:57:59 +01:00
Sarah Hoffmann
2750d66470
use load_sql fixture instead of explicit SQLPreprocessor
2026-02-12 22:42:58 +01:00
Sarah Hoffmann
0d423ad7a7
reorganise fixtures for placex table
...
Now follows the same pattern as fixtures for other tables and
uses the production SQL for table creation.
2026-02-12 22:14:15 +01:00
Sarah Hoffmann
dd332caa4d
simplify property test table implementation
2026-02-12 21:15:03 +01:00
Sarah Hoffmann
d691cfc35d
switch table definitions in conftest to use production SQL
2026-02-12 21:12:10 +01:00
Sarah Hoffmann
d274a5aecc
add fixtures for country table
2026-02-12 20:55:59 +01:00
Sarah Hoffmann
35a023d133
add function for inserting data to testing cursor
2026-02-12 20:44:04 +01:00
Sarah Hoffmann
79682a94ce
use better SQL quoting in test cursor implementation
2026-02-12 20:44:04 +01:00
Sarah Hoffmann
b995803c66
Merge pull request #3979 from jayaddison/issue-2714-prep/extract-rank-zero-specialcasing
...
Indexer: relocate zero-ranked-address indexing
2026-02-11 15:05:28 +01:00
James Addison
310d6e3c92
Indexer: relocate zero-ranked-address indexing
2026-02-10 11:51:18 +00:00
Sarah Hoffmann
d10d70944d
avoid f-strings in SQL creation in tests
2026-02-10 11:39:19 +01:00
Sarah Hoffmann
e17d0cb5cf
only allow alphanumeric and dash in DATABASE_WEBUSER
...
This variable is used a lot in raw SQL. Avoid injection issues.
2026-02-10 11:39:17 +01:00
Sarah Hoffmann
615804b1b3
Merge pull request #3978 from jayaddison/issue-2714-prep/index-boundaries-method-signature-nitpick
...
Refactor: add default params to Indexer.index_boundaries
2026-02-10 09:45:29 +01:00
Sarah Hoffmann
79bbdfd55c
Merge pull request #3975 from kad-link/fix/utf8-encoding-clean
...
Fix: Enforce explicit UTF-8 encoding in file I/O
2026-02-10 09:32:06 +01:00
James Addison
509f59b193
Refactor: add default params to index_boundaries
2026-02-09 21:36:30 +00:00
Sri CHaRan
f84b279540
fix: add utf-8 encoding in read-write files
2026-02-10 00:38:40 +05:30
James Addison
3db7c6d804
Tests: parameter-agnostic has_pending monkeypatching
...
Instead of relying on runtime parameter compatibility between
the patched `has_pending` method and `list.pop`, use a proxy
lambda function that accepts arbitrary keyword params.
2026-02-05 15:09:09 +00:00
Itz-Agasta
5e2ce10fe0
Adds mock grants SQL file for import test
2026-01-27 17:55:51 +05:30
Sarah Hoffmann
cc96912580
Merge pull request #3906 from AyushDharDubey/fix/issue_2463-Use-search_name-table-for-TIGER-data-imports-on-'dropped'-databases
...
Use `search_name` as fallback for TIGER imports when update tables are dropped
2026-01-23 20:52:40 +01:00
Ayush Dhar Dubey
eefd0efa59
update test frozen db: new tiger import mechanism
2026-01-09 17:47:07 +05:30
Sarah Hoffmann
354aa07cad
adapt unit tests to new postcode algorithms
2025-12-30 15:21:18 +01:00
Aditya30ag
3b182afa72
Fix typo in place_addressline table name in tests
2025-12-30 17:40:08 +05:30
Ayush Dhar Dubey
4fd616254a
update Locales constructor:
...
expect output names as argument and avoid redundant configuration initialization
2025-12-20 19:15:33 +05:30
Ayush Dhar Dubey
4919240377
test for cell-per-line format
2025-12-08 11:01:14 +05:30
Sarah Hoffmann
3bb5d00848
avoid extra query for finding closest housenumber in reverse
2025-12-05 17:09:13 +01:00
Sarah Hoffmann
ffd5c32f17
fix comparision between countr tokens and country restriction
2025-12-04 18:29:25 +01:00
Sarah Hoffmann
48d13c593b
fix flaky test around postcode word match penalties
2025-12-02 11:15:37 +01:00
Sarah Hoffmann
9447c90b09
adapt tests to new country token format
2025-12-01 13:10:18 +01:00
Sarah Hoffmann
81c6cb72e6
add normalised country name to word table
...
Country tokens now follow the usual convetion of having the
normalized version in the word column and the extra info about the
country code in the info column.
2025-12-01 13:10:18 +01:00
marc tobias
362088775f
postcode sanetizer skips postcodes which are only zeros
2025-10-30 13:45:29 +01:00
Sarah Hoffmann
5a8aa6cce4
adapt tests to new penalties
2025-09-12 17:45:22 +02:00
Sarah Hoffmann
177b16b89b
use new QueryStatistics in API server
2025-09-10 11:52:06 +02:00
Sarah Hoffmann
8339c2b928
no longer accept None in result maker functions
2025-09-06 11:09:40 +02:00
Sarah Hoffmann
bf604e36ee
add test for timeout class
2025-09-05 23:31:09 +02:00
Sarah Hoffmann
3a50f749dd
apply request timeout also while waiting for a connection from pool
2025-09-05 23:31:09 +02:00
Sarah Hoffmann
c2a311e69c
fix poscode update computation: use distance
2025-08-29 15:10:27 +02:00
marc tobias
247afe1f56
sanetizer no longer strips name parts in brackets when more parts follow
2025-08-23 01:06:35 +02:00
anqixxx
6b627df4fb
Locales and localization refactor with Locales as a localizer object.
...
Removed auto-localization from search/search_address APIs (now explicit), simplified AddressLines to subclass List[AddressLine], made display_name a computed property in Results instead of field and removed result-localization circular dependencies
2025-08-12 08:05:37 -04:00
Sarah Hoffmann
0045203092
don't restrict to viewbox for frequent terms
...
All searched places may be outside the viewbox in which case the
restriction means that there are no results at all. Add the penalty for
being outside the viewbox earlier instead and then cut the list.
2025-08-06 17:27:52 +02:00
marc tobias
9bad3b1e61
Better hint to user if database import didnt finish
2025-07-30 10:25:14 +02:00
Sarah Hoffmann
a9cd706bb6
adapt test to new lookup limits
2025-07-14 14:21:09 +02:00
Sarah Hoffmann
73ee17af95
adapt tests for new function signatures
2025-07-11 11:01:22 +02:00
Sarah Hoffmann
c634e9fc5f
differentiate between place searches with and without address
2025-07-07 12:03:56 +02:00
Sarah Hoffmann
13eaea8aae
split place search into address search and named search
...
The presence/absence of houenumbers makes quite a difference for search.
2025-07-07 09:13:48 +02:00
Sarah Hoffmann
f43fec0d57
Merge pull request #3764 from lonvia/update-importance
...
'refresh --importance' also needs to refresh importances in search_name table
2025-06-27 10:02:18 +02:00
Sarah Hoffmann
af82c3debb
remove duplicated test
...
There is a more extensive test of recompute_importance with
result check in test_refresh_wiki_data.py
2025-06-26 22:35:38 +02:00
Sarah Hoffmann
678702ceb7
rewrite importances in search_name after updating in placex
2025-06-26 20:27:37 +02:00
Sarah Hoffmann
f9eb93c4ab
remove support for deprecated gazetteer osm2pgsql output
2025-06-25 23:09:08 +02:00
anqixxx
20cf4b56b9
Refactored min and associated tests to follow greater than or equal to logic, so that min=0 accounted for no filtering
...
r
2025-06-04 00:53:52 -07:00
Sarah Hoffmann
75b4c7e56b
adapt to changed loop handling of pytest_asyncio
2025-05-26 11:51:20 +02:00