test_ok1/testing/example_scripts/conftest_usageerror/conftest.py

9 lines
159 B
Python

def pytest_configure(config):
import pytest
raise pytest.UsageError("hello")
def pytest_unconfigure(config):
print("pytest_unconfigure_called")