diff options
author | Aurelien Campeas <aurelien.campeas@logilab.fr> | 2010-04-15 13:42:35 +0200 |
---|---|---|
committer | Aurelien Campeas <aurelien.campeas@logilab.fr> | 2010-04-15 13:42:35 +0200 |
commit | df6b867330e95be13044a1a337801561a7c6a16a (patch) | |
tree | 1a583c28309007f974c252b993e47e7a3d227146 | |
parent | 0ec84e4250688cec149e9f157cb921812792d42d (diff) | |
download | logilab-common-df6b867330e95be13044a1a337801561a7c6a16a.tar.gz |
fix some docstrings
-rw-r--r-- | pytest.py | 12 | ||||
-rw-r--r-- | testlib.py | 24 |
2 files changed, 15 insertions, 21 deletions
@@ -1,3 +1,6 @@ +# copyright 2000-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# Licensed under the General Public License version 2 - http://www.gnu.org/licenses """pytest is a tool that eases test running and debugging. To be able to use pytest, you should either write tests using @@ -77,15 +80,6 @@ you can filter the function with a simple python expression * ``tata`` and ``titi`` match``rouge ^ carre`` * ``titi`` match ``rouge and not carre`` - - - - - - -:copyright: 2000-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. -:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr -:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses """ __docformat__ = "restructuredtext en" @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr +# license: General Public License version 2 - http://www.gnu.org/licenses """Run tests. This will find all modules whose name match a given prefix in the test @@ -7,21 +10,18 @@ additional facilities. Command line options: - -v: verbose -- run tests in verbose mode with output to stdout - -q: quiet -- don't print anything except if a test fails - -t: testdir -- directory where the tests will be found - -x: exclude -- add a test to exclude - -p: profile -- profiled execution - -c: capture -- capture standard out/err during tests - -d: dbc -- enable design-by-contract - -m: match -- only run test matching the tag pattern which follow + -v verbose -- run tests in verbose mode with output to stdout + -q quiet -- don't print anything except if a test fails + -t testdir -- directory where the tests will be found + -x exclude -- add a test to exclude + -p profile -- profiled execution + -c capture -- capture standard out/err during tests + -d dbc -- enable design-by-contract + -m match -- only run test matching the tag pattern which follow If no non-option arguments are present, prefixes used are 'test', 'regrtest', 'smoketest' and 'unittest'. -:copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. -:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr -:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses """ __docformat__ = "restructuredtext en" # modified copy of some functions from test/regrtest.py from PyXml @@ -734,7 +734,7 @@ Examples: self.printonly = re.compile(value) if opt in ('-s', '--skip'): self.skipped_patterns = [pat.strip() for pat in - value.split(', ')] + value.split(', ')] if opt == '--color': self.colorize = True if opt in ('-m', '--match'): |