Add yielded values to function example

This commit is contained in:
Raphael Pierzina
2016-06-25 11:00:54 +02:00
parent 4f8b8c8d31
commit 693859210a

View File

@@ -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
--------------------