Skip to content

Commit 7d958ee

Browse files
committed
Fix typo in BDD runner
1 parent 757c802 commit 7d958ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/bdd/steps/steps_execute.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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")
127127
def 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

0 commit comments

Comments
 (0)