add custom pytest collector for BDD feature files

This commit is contained in:
Sarah Hoffmann
2025-10-30 17:44:17 +01:00
parent 9a13b62fb9
commit 55547723bf
5 changed files with 71 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ import asyncio
import random
import pytest
from pytest_bdd import scenarios, when, then, given
from pytest_bdd import when, then, given
from pytest_bdd.parsers import re as step_parse
from nominatim_db import cli
@@ -106,4 +106,4 @@ def check_place_content(db_conn, datatable, node_grid, table, exact):
check_table_content(db_conn, table, datatable, grid=node_grid, exact=bool(exact))
scenarios('features/osm2pgsql')
PYTEST_BDD_SCENARIOS = ['features/osm2pgsql']