mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
disable improved BDD test naming for pytest < 8
Needs the improved test collector introduced in pytest 8.0.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user