diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2008-05-07 11:27:53 +0200 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2008-05-07 11:27:53 +0200 |
commit | e26e5f5b7f10de0408bbf1fecf0d96701811f742 (patch) | |
tree | 0d5164fe0b57b7c08f6003ead506202b72eaa217 | |
parent | fe2cdc4ea2da31261e46ea5b5ff5fb5218b882dc (diff) | |
download | logilab-common-e26e5f5b7f10de0408bbf1fecf0d96701811f742.tar.gz |
add some doc about TestCase.optval()
-rw-r--r-- | pytest.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -39,6 +39,15 @@ could define the following ``pytestconf.py`` file :: logger = logging.getLogger('erudi') logger.setLevel(logging.getLevelName(loglevel)) + +In your TestCase class you can then get the value of a specific option with +the ``optval`` method:: + + class MyTestCase(TestCase): + def test_foo(self): + loglevel = self.optval('loglevel') + # ... + """ PYTEST_DOC = """%prog [OPTIONS] [testfile [testpattern]] |