introduce the pytest_configure_funcargs hook for better control on funcarg instanciation/configuration

This commit is contained in:
Ronny Pfannschmidt
2011-05-12 23:47:05 +02:00
parent ea936213bc
commit b6815538c5
4 changed files with 45 additions and 8 deletions

View File

@@ -115,6 +115,9 @@ think of as "resources").
.. _`funcarg factory`:
.. _factory:
The funcarg **request** object
=============================================
@@ -140,6 +143,16 @@ factory and provides access to test configuration and context:
.. _`parametrizing-tests`:
.. _`parametrized test functions`:
Reconfiguring funcargs in a test's setup
========================================
Sometimes there is need to do additional funcarg setup steps
which are outside of the normal setup and involve more than just one funcarg.
For that reason the ``pytest_configure_funcargs(request)`` hook
is called to implement and extend the funcarg filling mechanism.
Parametrizing multiple calls to a test function
===========================================================