Skip to content

Commit 316563a

Browse files
committed
Remove input file from BDD test context when reading inline OSM data
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.
1 parent b6ab0c6 commit 316563a

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)