Files
kontor/kontor-piccolo/conftest.py
Thomas Peetz 37e094e390
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
add kontor-blacksheep and kontor-piccolo as blueprints for new app
2026-06-03 15:59:59 +02:00

18 lines
497 B
Python

import os
import sys
from piccolo.utils.warnings import colored_warning
def pytest_configure(*args):
if os.environ.get("PICCOLO_TEST_RUNNER") != "True":
colored_warning(
"\n\n"
"We recommend running Piccolo tests using the "
"`piccolo tester run` command, which wraps Pytest, and makes "
"sure the test database is being used. "
"To stop this warning, modify conftest.py."
"\n\n"
)
sys.exit(1)