aports/testing/py3-pytest-postgresql/test_do-not-reimport-plugin.patch
2024-06-09 10:10:42 +00:00

25 lines
940 B
Diff

diff --git a/tests/test_postgres_options_plugin.py.orig b/tests/test_postgres_options_plugin.py
index 6a8bca8f4d7..a39e475b589 100644
--- a/tests/test_postgres_options_plugin.py.orig
+++ b/tests/test_postgres_options_plugin.py
@@ -14,7 +14,6 @@ def pointed_pytester(pytester: Pytester) -> Pytester:
pytest_postgresql_path = Path(pytest_postgresql.__file__)
root_path = pytest_postgresql_path.parent.parent
pytester.syspathinsert(root_path)
- pytester.makeconftest("from pytest_postgresql.plugin import *\n")
return pytester
diff --git a/tests/conftest.py.orig b/tests/conftest.py
index a75e526eb23..76547c6213e 100644
--- a/tests/conftest.py.orig
+++ b/tests/conftest.py
@@ -4,7 +4,6 @@ import os
from pathlib import Path
from pytest_postgresql import factories
-from pytest_postgresql.plugin import * # noqa: F403,F401
pytest_plugins = ["pytester"]
POSTGRESQL_VERSION = os.environ.get("POSTGRES", "13")