Add yielded values to function example
This commit is contained in:
parent
4f8b8c8d31
commit
693859210a
|
@ -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
|
||||
--------------------
|
||||
|
|
Loading…
Reference in New Issue