Skip to content

Commit

Permalink
Merge pull request #1911 from joto/clear-bdd-context
Browse files Browse the repository at this point in the history
Remove input file from BDD test context when reading inline OSM data
  • Loading branch information
lonvia authored Feb 11, 2023
2 parents 9c4d7f6 + 316563a commit 7c676bc
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 7c676bc

Please sign in to comment.