From 693859210a24d3ba58b5ab93e91d0eb53e9eb872 Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Sat, 25 Jun 2016 11:00:54 +0200 Subject: [PATCH] Add yielded values to function example --- doc/en/parametrize_with_fixtures.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/en/parametrize_with_fixtures.rst b/doc/en/parametrize_with_fixtures.rst index 3964d9d7d..762f1d8a4 100644 --- a/doc/en/parametrize_with_fixtures.rst +++ b/doc/en/parametrize_with_fixtures.rst @@ -88,7 +88,13 @@ fixtures from existing ones. fixtures=['default_context', 'extra_context'], ) -The new fixture ``context`` inherits the scope from the used fixtures. +The new fixture ``context`` inherits the scope from the used fixtures and yield +the following values. + +- ``{}`` +- ``{'author': 'alice'}`` +- ``{'project_slug': 'helloworld'}`` +- ``{'author': 'bob', 'project_slug': 'foobar'}`` Alternative approach --------------------