File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed
pytest_postgresql/factories Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,6 @@ You can create additional fixtures using factories:
101101 .. note ::
102102
103103 Each process fixture can be configured independently through factory arguments.
104- When using chained fixtures (``postgresql_noproc(depends_on=...) ``), the
105- factory injects the dependency name into the runtime signature so
106- pytest/xdist can order setup/teardown correctly. This may not show up in
107- ``--setup-show `` output, and some older pytest versions do not reflect the
108- dynamic signature when displaying fixtures.
109104
110105Pre-populating the database for tests
111106-------------------------------------
Original file line number Diff line number Diff line change 1- pytest == 7.4 ; python_version >= "3.14"
2- pytest == 7.2 ; python_version < "3.14"
1+ pytest == 7.4
32port-for == 0.7.3
43mirakuru == 2.6.0
54psycopg == 3.0.0
Original file line number Diff line number Diff line change 1717# along with pytest-postgresql. If not, see <http://www.gnu.org/licenses/>.
1818"""Fixture factory for existing postgresql server."""
1919
20- import inspect
2120import os
2221from pathlib import Path
2322from typing import Callable , Iterator
@@ -122,12 +121,4 @@ def postgresql_noproc_fixture(request: FixtureRequest) -> Iterator[NoopExecutor]
122121 janitor .load (load_element )
123122 yield noop_exec
124123
125- if depends_on and depends_on .isidentifier ():
126- postgresql_noproc_fixture .__signature__ = inspect .Signature ( # type: ignore[attr-defined]
127- parameters = [
128- inspect .Parameter ("request" , inspect .Parameter .POSITIONAL_OR_KEYWORD ),
129- inspect .Parameter (depends_on , inspect .Parameter .POSITIONAL_OR_KEYWORD ),
130- ]
131- )
132-
133124 return postgresql_noproc_fixture
You can’t perform that action at this time.
0 commit comments