parent
dc727832a0
commit
b5fd3cfb84
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue