Skip to content

Commit 7c676bc

Browse files
authored
Merge pull request #1911 from joto/clear-bdd-context
Remove input file from BDD test context when reading inline OSM data
2 parents 9c4d7f6 + 316563a commit 7c676bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/bdd/steps/steps_osm_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def osm_define_node_grid(context, step, origin_x, origin_y):
3131

3232
@given("the (?P<formatted>python-formatted )?OSM data")
3333
def osm_define_data(context, formatted):
34+
context.import_file = None
3435
data = context.text
3536
if formatted:
3637
data = eval('f"""' + data + '"""')

0 commit comments

Comments
 (0)