--HG--
branch : pytest-2.7
This commit is contained in:
holger krekel 2015-06-03 23:42:38 +02:00
parent dc727832a0
commit b5fd3cfb84
1 changed files with 60 additions and 60 deletions

View File

@ -10,7 +10,7 @@ Pass different values to a test function, depending on command line options
.. regendoc:wipe .. regendoc:wipe
Suppose we want to write a test that depends on a command line option. Suppose we want to write a test that depends on a command line option.
Here is a basic pattern how to achieve this:: Here is a basic pattern to achieve this::
# content of test_sample.py # content of test_sample.py
def test_answer(cmdopt): def test_answer(cmdopt):