File: conftest.py

package info (click to toggle)
pytest-dependency 0.5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: python: 1,542; makefile: 66; sh: 8
file content (17 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pytest

pytest_plugins = "pytester"


@pytest.fixture
def ctestdir(testdir):
    testdir.makefile('.ini', pytest="""
        [pytest]
        console_output_style = classic
    """)
    testdir.makeconftest("""
        import sys
        if "pytest_dependency" not in sys.modules:
            pytest_plugins = "pytest_dependency"
    """)
    return testdir