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

@@ -377,8 +377,9 @@ def check_place_missing_lines(db_conn, table, osm_type, osm_id, osm_class):
assert cur.execute(sql, params).fetchone()[0] == 0
def pytest_pycollect_makemodule(module_path, parent):
return BddTestCollector.from_parent(parent, path=module_path)
if pytest.version_tuple >= (8, 0, 0):
def pytest_pycollect_makemodule(module_path, parent):
return BddTestCollector.from_parent(parent, path=module_path)
class BddTestCollector(pytest.Module):