From f5c16b96ff60a7886d457fd8d51c69369371ebae Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 6 Sep 2026 21:27:03 +0300 Subject: [PATCH] docs: correct how modern_di_fixture resolves in the README API section --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 52df19d..744e3d7 100644 --- a/README.md +++ b/README.md @@ -125,8 +125,8 @@ def test_with_override( ### `modern_di_fixture(dependency, *, container_fixture="di_container", name=None, pytest_scope="function")` Turn a single dependency into a pytest fixture. ``dependency`` is either a -type (resolved via ``container.resolve``) or a Provider (resolved via -``container.resolve_provider``). The returned object is a real pytest fixture +type or a Provider; the generated fixture resolves it through +``container.resolve_dependency``. The returned object is a real pytest fixture — assign it to a module-level name and pytest will collect it. ### `expose(*groups, container_fixture="di_container", pytest_scope="function", module=None)`