James Addison
53e8334206
Indexing: fixup: add presence check for hstore name field
2026-02-16 00:01:57 +00:00
Sarah Hoffmann
c3e8fa8c43
replace postcode mock with standard postcode table fixtures
2026-02-15 16:48:31 +01:00
Sarah Hoffmann
2ddb19c0b0
Merge pull request #3986 from lonvia/rework-tiger-tests
...
Rework unit tests for import of tiger data
2026-02-13 14:11:04 +01:00
Sarah Hoffmann
8ed7a3875a
rework tiger unit tests to use production pgsql functions
2026-02-13 11:16:40 +01:00
Sarah Hoffmann
3285948130
rewrite indexing tests to use standard table fixtures
2026-02-13 11:03:18 +01:00
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
fed64cda5a
Merge pull request #3957 from jayaddison/issue-2714/linked-places-default-language
...
Indexing: add default-language placename from linked places
2026-02-11 15:08:18 +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
6fee784c9f
Indexing: add default-language placename from linked places
2026-02-05 15:19:48 +00:00
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
Sarah Hoffmann
cc9c8963f3
Merge pull request #3949 from Itz-Agasta/try
...
Feat: Add admin function for granting access to read-only user
2026-02-02 09:53:24 +01:00
James Addison
5cdc6724de
Tests: set boundary admin level to enable linking
2026-01-31 22:00:23 +00:00
Itz-Agasta
5e2ce10fe0
Adds mock grants SQL file for import test
2026-01-27 17:55:51 +05:30
Itz-Agasta
e77a4c2f35
Switch to ast.literal_eval for dict parsing
...
Due to some test data in the BDD feature files includes Python raw strings and escape sequences that standard json.loads() cannot parse switching to safer Python literal evaluation
for converting string representations of dictionaries.
2026-01-24 15:32:47 +05:30
Itz-Agasta
9fa980bca2
Replaces eval with json.loads for safer dict parsing
...
Switches from eval to json.loads when parsing string representations
of dictionaries to prevent arbitrary code
execution.
2026-01-24 15:32:47 +05:30
Sarah Hoffmann
fe773c12b2
Merge pull request #3946 from lonvia/enable-entrances-for-reverse
...
Enable entrance lookup for reverse and lookup
2026-01-23 22:10:43 +01:00
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
Sarah Hoffmann
6a6a064ef7
enable entrances for reverse and lookup
2026-01-23 17:38:47 +01:00
Sarah Hoffmann
35b42ad9ce
update Starlette tests to using their TestClient
2026-01-23 16:28:13 +01:00
Ayush Dhar Dubey
eefd0efa59
update test frozen db: new tiger import mechanism
2026-01-09 17:47:07 +05:30
Sarah Hoffmann
f30fcdcd9d
BDD: make sure randomly generated names always contain a letter
2026-01-07 09:58:40 +01:00
Sarah Hoffmann
3bcd1aa721
adapt BDD tests for new postcode table structure
2025-12-30 15:21:20 +01:00
Sarah Hoffmann
354aa07cad
adapt unit tests to new postcode algorithms
2025-12-30 15:21:18 +01:00
Sarah Hoffmann
340fe64e8b
put postcodes in extra table on import
2025-12-30 15:20:46 +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
Sarah Hoffmann
58e56ec53d
Merge pull request #3901 from AyushDharDubey/fix/issue_3829-use-mwparserfromhell-to-parse-sp-wiki-page
...
Replace regex with `mwparserfromhell` based MW WikiCode Parsing for Special Phrases
2025-12-08 11:51:50 +01:00
Ayush Dhar Dubey
4919240377
test for cell-per-line format
2025-12-08 11:01:14 +05:30
Ayush Dhar Dubey
56cb183c4e
update sp test content
...
add latest <generator>MediaWiki 1.43.5</generator>
add test case for one-row-per-line
2025-12-08 10:59:10 +05:30
Sarah Hoffmann
35060164ab
reverse: only return housenumbers near street
2025-12-07 11:00:23 +01:00
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
Sarah Hoffmann
303ac42b47
Merge pull request #3862 from mtmail/skip-all-zero-postcodes
...
Postcode sanetizer now skips values which are only zeros
2025-10-31 10:36:05 +01:00