summaryrefslogtreecommitdiff
path: root/testlib.py
Commit message (Collapse)AuthorAgeFilesLines
* set maxDiff to None so we see diffs anywaySylvain Th?nault2010-09-271-1/+1
|
* cleanup: _deprecate doesn't have to be an inner functionSylvain Th?nault2010-09-271-10/+9
|
* (cleaning)Julien Jehannet2010-09-241-6/+2
|
* [unittest2] make standard import under py3.x (skip unittest2 support from here)Julien Jehannet2010-09-221-75/+70
|
* fix some pylint detected errorsSylvain Th?nault2010-08-271-7/+7
|
* Add a InheritableSet to lgc.compatPierre-Yves David2010-08-181-2/+2
| | | | | | | | | | On version prior to 2.5 subclassing a set is troublesome as the set initialisation is done in set.__new__ instead of set.__init__. Any additional argument is processed as is by the __new__ methods leading to TypeError. It's not the case in 2.5 and above. We create a InheritableSet class which only differ of set for version prior do 2.5. It overwrite the __new__ methods to only pass the first argument to set.__new__ and init the object as expected afterward.
* [teslib/refactoring] Use decorator.Pierre-Yves David2010-07-281-2/+3
|
* testlib: make our legacy assertion methods compatible with unittest2Julien Jehannet2010-08-021-8/+11
|
* we need default in stable. lgc should be releasedSylvain Th?nault2010-07-281-41/+122
|\
| * backport stable into defaultPierre-Yves David2010-06-231-41/+122
| |\
| | * [testlib/tag] Tagged method now inherit from class Tags too.Pierre-Yves David2010-06-111-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | This behaviour might be controlled with the ``inherit`` argument of the ``tag`` decorator and ``Tags`` constructor. The ``Tags`` constructors now have the same signature than the ``tag`` decorator. The former signature (same as ``set`` constructor) is still supported.
| | * add some parameter description to the assert methodsEmile Anclin2010-06-081-24/+98
| | |
* | | don't raise string exception in testlib (closes #35331)Sylvain Th?nault2010-07-011-21/+15
|/ /
* | tests: fix some configuration tests (python2.4)Julien Jehannet2010-06-181-4/+2
| | | | | | | | | | - catch Etree import error for 2.4 - update usage for python2.4 (Debian stable version)
* | [testlib] fix 2.4 compat by adding a dummy wraps functionPierre-Yves David2010-06-171-2/+8
|/
* backport default into stableSylvain Th?nault2010-05-211-3/+7
|\
| * [testlib] add option splitlines to assertTextEqualsNicolas Chauvat2010-04-291-3/+7
| |
* | missing replacement in disclaimer; include COPYING.LESSER in manifest; kill ↵Sylvain Th?nault2010-04-281-1/+1
|/ | | | DEPENDS file
* propre licensing information (LGPL-2.1). Hope I get it right this time.Sylvain Th?nault2010-04-281-2/+16
|
* fix licensing, should be LGPL everywhereSylvain Th?nault2010-04-261-1/+1
|
* propertly wraps decorated function (preserve name) for temporary directoryPierre-Yves David2010-04-201-2/+7
|
* fix some docstringsAurelien Campeas2010-04-151-12/+12
|
* backport stable branchAdrien Di Mascio2010-04-131-2/+19
|\
| * allow multiple arguments for ↵Pierre-Yves David2010-03-221-2/+2
| | | | | | | | logilab.common.testlib.TestCase.datapath.\n\ndatapath now handle multiple argument as os.path.join do
| * [testlib] add in_tempdir, within_tempdir decoratorPierre-Yves David2010-03-171-0/+17
| | | | | | | | | | | | | | | | in_tempdir change the directory for tempfile.tempdir during the function call. within_tempdir combine with_tmpdir and in_tmpdir (create a temp dir and change current directory to a created tempdir during the function call and clear it afterward)
* | update license, logilab-common is licensed under LGPLv2Adrien Di Mascio2010-04-131-1/+1
|/
* [testlib] del self.test to improve garbage collection when a lot of tests ↵Sylvain Th?nault2010-03-081-1/+4
| | | | are laucnhed
* [testlib] improve XML assertion with ElementTree parseur and context linesPierre-Yves David2010-02-241-11/+72
|
* Make it possible to skip a InnetTest-based generative test alone, without ↵David Douard2009-11-021-1/+12
| | | | skipping the whole test.
* mergelogilab-common-version-0.45.2Sylvain Th?nault2009-11-231-2/+7
|\
| * Make it possible to tag test classesDavid Douard2009-10-081-2/+7
| | | | | | | | If a tags is set on both a class and a method of this class, this latter take precedence in tag definition
* | include Dotan Barak spell fixes patchSylvain Th?nault2009-11-231-6/+6
|/
* remove deprecated codeSylvain Th?nault2009-08-071-125/+0
|
* R [deprecation] deprecated_function deprecated in favor of deprecatedNicolas Chauvat2009-07-311-9/+8
|
* R [all] obsolete was renamed deprecatedNicolas Chauvat2009-07-311-2/+3
|
* [pytest] fix batchmode exeution, don't capture streamsAdrien Di Mascio2009-07-291-29/+33
|
* [pytest] -c option now caputres DeprecationWarningsAdrien Di Mascio2009-07-291-6/+7
|
* [testlib] avoid additional period prints in generative testsAdrien Di Mascio2009-07-291-4/+5
|
* [testlib] simplify traceback manipulation (skip first frames corresponding ↵Adrien Di Mascio2009-07-291-8/+12
| | | | to testlib functions)
* new stiplines option to assertLinesEqualsSylvain Th?nault2009-07-241-2/+8
|
* turn datapath into a classmethodSylvain Th?nault2009-07-221-2/+3
|
* already defined in decoratorsSylvain Th?nault2009-07-221-14/+2
|
* nicer failure messsageSylvain Th?nault2009-07-211-1/+1
|
* [cleanup] delete-trailing-whitespaceNicolas Chauvat2009-07-191-68/+68
|
* strip text to diffsylvain thenault2009-03-121-2/+2
|
* add profile option to testlib. this uses cProfile and complements hotshot ↵ludal2009-02-171-2/+15
| | | | used by pytest
* [testlib] teardown_module() is now given the TestResult for possible ↵Adrien Di Mascio2009-01-301-1/+1
| | | | postprocessing
* fix assertFloatAlmostEquals to use msgAlexandre Fayolle2009-01-261-1/+1
|
* [testlib] fix bug in traceback formatting: handle cases where we source code ↵Adrien Di Mascio2009-01-221-1/+4
| | | | is not available
* use traceback.formation_exception_only to be more error-resistant when ↵Adrien Di Mascio2009-01-201-1/+1
| | | | displaying fancy tracebacks with unicode strings