From 35559a87bd9e16e2a7ca6d13bcec8cd642e61d35 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Sun, 25 Jan 2026 10:38:07 +0100 Subject: [PATCH] test: add conftest.py to fix tests module import path --- tests/conftest.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/conftest.py diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 00000000..46046918 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,14 @@ +# +# This file is part of gunicorn released under the MIT license. +# See the NOTICE for more information. + +"""Pytest configuration for gunicorn tests.""" + +import os +import sys + +# Add the tests directory to sys.path so test support modules can be imported +# as 'tests.module_name' (e.g., 'tests.support_dirty_apps:CounterApp') +tests_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +if tests_dir not in sys.path: + sys.path.insert(0, tests_dir)