Skip to content

Commit

Permalink
Remove input file from BDD test context when reading inline OSM data
Browse files Browse the repository at this point in the history
If an input file was read first and in another step inline OSM data, the
context still knew about the file and re-read it.
  • Loading branch information
joto committed Feb 11, 2023
1 parent b6ab0c6 commit 316563a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/bdd/steps/steps_osm_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def osm_define_node_grid(context, step, origin_x, origin_y):

@given("the (?P<formatted>python-formatted )?OSM data")
def osm_define_data(context, formatted):
context.import_file = None
data = context.text
if formatted:
data = eval('f"""' + data + '"""')
Expand Down

0 comments on commit 316563a

Please sign in to comment.