File: conftest.py

package info (click to toggle)
pytest-bdd 7.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 540 kB
  • sloc: python: 3,535; makefile: 134
file content (14 lines) | stat: -rw-r--r-- 530 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest

pytest_plugins = "pytester"


def pytest_generate_tests(metafunc):
    if "pytest_params" in metafunc.fixturenames:
        parametrizations = [
            pytest.param([], id="no-import-mode"),
            pytest.param(["--import-mode=prepend"], id="--import-mode=prepend"),
            pytest.param(["--import-mode=append"], id="--import-mode=append"),
            pytest.param(["--import-mode=importlib"], id="--import-mode=importlib"),
        ]
        metafunc.parametrize("pytest_params", parametrizations)