Skip to content

Commit

Permalink
cron: fix test_update_missing_housenumbers to take ref housenumbers f…
Browse files Browse the repository at this point in the history
…rom sql

Change-Id: Ibd10b9adb165d17976a5477503ceb8fdb79b1069
  • Loading branch information
vmiklos committed Aug 5, 2024
1 parent 7a154e9 commit a43d2ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cron/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ fn test_update_missing_housenumbers() {
let mtime = ctx.get_time().now_string();
{
let conn = ctx.get_database_connection().unwrap();
conn.execute_batch(
"insert into ref_housenumbers (county_code, settlement_code, street, housenumber, comment) values ('01', '011', 'Tűzkő utca', '1/A', '');"
)
.unwrap();
conn.execute(
"insert into osm_housenumbers (relation, osm_id, street, housenumber, postcode, place, housename, conscriptionnumber, flats, floor, door, unit, name, osm_type) values (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14)",
["gazdagret", "1", "Törökugrató utca", "1", "", "", "", "", "", "", "", "", "", "node"],
Expand Down

0 comments on commit a43d2ab

Please sign in to comment.