File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def run_osm2pgsql(context, output):
6868
6969 outdata = proc .communicate (input = data_stdin )
7070
71- context .osm2psql_outdata = [d .decode ('utf-8' ).replace ('\\ n' , '\n ' ) for d in outdata ]
71+ context .osm2pgsql_outdata = [d .decode ('utf-8' ).replace ('\\ n' , '\n ' ) for d in outdata ]
7272
7373 return proc .returncode
7474
@@ -109,8 +109,8 @@ def execute_osm2pgsql_sucessfully(context, output):
109109 return
110110
111111 assert returncode == 0 ,\
112- f"osm2psql failed with error code { returncode } .\n " \
113- f"Output:\n { context .osm2psql_outdata [0 ]} \n { context .osm2psql_outdata [1 ]} \n "
112+ f"osm2pgsql failed with error code { returncode } .\n " \
113+ f"Output:\n { context .osm2pgsql_outdata [0 ]} \n { context .osm2pgsql_outdata [1 ]} \n "
114114
115115
116116@then ("running osm2pgsql (?P<output>\w+)(?: with parameters)? fails" )
@@ -126,9 +126,9 @@ def execute_osm2pgsql_with_failure(context, output):
126126@then ("the (?P<kind>\w+) output contains" )
127127def check_program_output (context , kind ):
128128 if kind == 'error' :
129- s = context .osm2psql_outdata [1 ]
129+ s = context .osm2pgsql_outdata [1 ]
130130 elif kind == 'standard' :
131- s = context .osm2psql_outdata [0 ]
131+ s = context .osm2pgsql_outdata [0 ]
132132 else :
133133 assert not "Expect one of error, standard"
134134
You can’t perform that action at this time.
0 commit comments