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

@@ -276,4 +276,8 @@ def then_check_interpolation_table_negative(db_conn, oid):
assert cur.fetchone()[0] == 0
PYTEST_BDD_SCENARIOS = ['features/db']
if pytest.version_tuple >= (8, 0, 0):
PYTEST_BDD_SCENARIOS = ['features/db']
else:
from pytest_bdd import scenarios
scenarios('features/db')