add tests for examples in lua style documentation

And fix all the errors the tests have found.
This commit is contained in:
Sarah Hoffmann
2022-12-23 17:35:28 +01:00
parent 9321e425a4
commit 200eae3bc0
10 changed files with 257 additions and 20 deletions

View File

@@ -125,7 +125,7 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None:
]
if str(options['osm2pgsql_style']).endswith('.lua'):
env['LUA_PATH'] = ';'.join((str(options['osm2pgsql_style_path'] / 'flex-base.lua'),
env['LUA_PATH'] = ';'.join((str(options['osm2pgsql_style_path'] / '?.lua'),
os.environ.get('LUAPATH', ';')))
cmd.extend(('--output', 'flex'))
else: