disable improved BDD test naming for pytest < 8

Needs the improved test collector introduced in pytest 8.0.
This commit is contained in:
Sarah Hoffmann
2025-10-30 20:33:43 +01:00
parent 55547723bf
commit a51c771107
4 changed files with 18 additions and 5 deletions

View File

@@ -106,4 +106,8 @@ def check_place_content(db_conn, datatable, node_grid, table, exact):
check_table_content(db_conn, table, datatable, grid=node_grid, exact=bool(exact))
PYTEST_BDD_SCENARIOS = ['features/osm2pgsql']
if pytest.version_tuple >= (8, 0, 0):
PYTEST_BDD_SCENARIOS = ['features/osm2pgsql']
else:
from pytest_bdd import scenarios
scenarios('features/osm2pgsql')