From 316563a007aa66d78b2ca6bca3c50a33b53553ee Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sat, 11 Feb 2023 11:25:55 +0100 Subject: [PATCH] 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. --- tests/bdd/steps/steps_osm_data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/bdd/steps/steps_osm_data.py b/tests/bdd/steps/steps_osm_data.py index befc2a6f0..26eff1a27 100644 --- a/tests/bdd/steps/steps_osm_data.py +++ b/tests/bdd/steps/steps_osm_data.py @@ -31,6 +31,7 @@ def osm_define_node_grid(context, step, origin_x, origin_y): @given("the (?Ppython-formatted )?OSM data") def osm_define_data(context, formatted): + context.import_file = None data = context.text if formatted: data = eval('f"""' + data + '"""')