Skip to content

Commit a5f0872

Browse files
committed
bdd: run basic lua tests against empty files
This way osm2pgsql can be run without failure but the test will be quick.
1 parent 319dff8 commit a5f0872

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/bdd/flex/lua-basics.feature

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
Feature: Flex output uses a Lua config file
22

33
Scenario: Check access to osm2pgsql object from Lua
4-
Given the input file 'liechtenstein-2013-08-03.osm.pbf'
4+
Given the OSM data
5+
"""
6+
"""
57
And the lua style
68
"""
79
print("version=" .. osm2pgsql.version)
@@ -28,15 +30,17 @@ Feature: Flex output uses a Lua config file
2830
"""
2931

3032
Scenario: Check access to osm2pgsql properties from Lua
31-
Given the input file 'liechtenstein-2013-08-03.osm.pbf'
33+
Given the OSM data
34+
"""
35+
"""
3236
And the lua style
3337
"""
3438
local p = osm2pgsql.properties
3539
print("attributes=" .. p.attributes)
3640
print("prefix=" .. p.prefix)
3741
"""
38-
Then running osm2pgsql flex fails
39-
And the standard output contains
42+
When running osm2pgsql flex
43+
Then the standard output contains
4044
"""
4145
attributes=false
4246
"""

0 commit comments

Comments
 (0)