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

@@ -15,7 +15,7 @@ import re
import psycopg
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 utils.place_inserter import PlaceColumn
@@ -276,4 +276,4 @@ def then_check_interpolation_table_negative(db_conn, oid):
assert cur.fetchone()[0] == 0
scenarios('features/db')
PYTEST_BDD_SCENARIOS = ['features/db']