@@ -148,7 +148,7 @@ def setup_style_file(context, style):
148148 context .osm2pgsql_params .extend (('-S' , str (context .test_data_dir / style )))
149149
150150
151- @when ("running osm2pgsql (?P<output>\w+)(?: with parameters)?" )
151+ @when (r "running osm2pgsql (?P<output>\w+)(?: with parameters)?" )
152152def execute_osm2pgsql_successfully (context , output ):
153153 returncode = run_osm2pgsql (context , output )
154154
@@ -160,7 +160,7 @@ def execute_osm2pgsql_successfully(context, output):
160160 f"Output:\n { context .osm2pgsql_outdata [0 ]} \n { context .osm2pgsql_outdata [1 ]} \n "
161161
162162
163- @then ("running osm2pgsql (?P<output>\w+)(?: with parameters)? fails" )
163+ @then (r "running osm2pgsql (?P<output>\w+)(?: with parameters)? fails" )
164164def execute_osm2pgsql_with_failure (context , output ):
165165 returncode = run_osm2pgsql (context , output )
166166
@@ -179,7 +179,7 @@ def execute_osm2pgsql_replication_successfully(context):
179179 f"Output:\n { context .osm2pgsql_outdata [0 ]} \n { context .osm2pgsql_outdata [1 ]} \n "
180180
181181
182- @then ("running osm2pgsql-replication fails(?: with returncode (?P<expected>\d+))?" )
182+ @then (r "running osm2pgsql-replication fails(?: with returncode (?P<expected>\d+))?" )
183183def execute_osm2pgsql_replication_successfully (context , expected ):
184184 returncode = run_osm2pgsql_replication (context )
185185
@@ -190,7 +190,7 @@ def execute_osm2pgsql_replication_successfully(context, expected):
190190 f"Output:\n { context .osm2pgsql_outdata [0 ]} \n { context .osm2pgsql_outdata [1 ]} \n "
191191
192192
193- @then ("the (?P<kind>\w+) output contains" )
193+ @then (r "the (?P<kind>\w+) output contains" )
194194def check_program_output (context , kind ):
195195 if kind == 'error' :
196196 s = context .osm2pgsql_outdata [1 ]
0 commit comments