Skip to content

Commit 2197273

Browse files
committed
Fix test
1 parent cbbe6ae commit 2197273

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

test/fixtures/highway.osm_tags.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
{
3+
"select": [
4+
"[highway~'motorway|trunk|primary|terciary|unclassified|residential|service|living_street']"
5+
],
6+
"interest": {
7+
"name": null,
8+
"name:es": null,
9+
"name:eu": null,
10+
"offical_name": null
11+
}
12+
}
13+
]

test/lib/time_machine/validation/time_machine_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TestValidation < Test::Unit::TestCase
3737
# Use the boundary polygon defined by the corresponding OSM relation id
3838
polygon: https://polygons.openstreetmap.fr/get_geojson.py?id=349027&params=0.004000-0.001000-0.001000
3939
# Tags definition in the siblings export directory
40-
osm_tags: ./export/highway.osm_tags.json
40+
osm_tags: ./highway.osm_tags.json
4141
users: [] # OSM usernames, validation right on this group
4242
YAML
4343

@@ -50,7 +50,7 @@ def test_time_machine_deleted
5050
deleted:
5151
action_force: reject
5252
YAML
53-
config = Configuration.parse(yaml, './projects/espana_navarra/')
53+
config = Configuration.parse(yaml, './test/fixtures/')
5454

5555
assert_equal(1, config.user_groups.size)
5656
assert_not_empty(config.osm_tags_matches.match({ 'highway' => 'primary' }))
@@ -95,7 +95,7 @@ def test_time_machine_locha_propagate_rejection
9595
reject: geom_changes_significant
9696
accept: geom_changes_insignificant
9797
YAML
98-
config = Configuration.parse(yaml, './projects/espana_navarra/')
98+
config = Configuration.parse(yaml, './test/fixtures/')
9999

100100
locha = [
101101
[1, '[

0 commit comments

Comments
 (0)