summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove trailing whitespace.Robert Collins2015-06-291-1/+1
|
* Deal with resource leaks during setUp.Robert Collins2015-06-2918-59/+198
| | | | | | | | Fixture.setUp should no longer be overridden in subclasses. Instead override _setUp. This permits the Fixture base class to detect failures during _setUp and trigger any registered cleanups, attach any details to the failure exception and propogate that to callers. (Robert Collins, #1456361, #1456353)
* Missed NEWS entry.Robert Collins2015-06-221-0/+3
|
* Fine tune the mock patch.Robert Collins2015-06-225-13/+41
|
* Add a new mockpatch fixtureJulien Danjou2015-06-226-0/+161
| | | | | This fixture provides an easy usage for mock (unittest.mock in Python 3).
* Document where the project home and source are.Robert Collins2015-06-221-0/+7
|
* Ignore built things.Robert Collins2015-06-221-0/+2
|
* Release 1.2.0.1.2.0Robert Collins2015-05-051-0/+3
|
* Add a warnings module capture fixureJoshua Harlow2015-05-045-0/+98
| | | | | | | | | | Capturing the warnings module output (which is typically used for deprecating code or functions or modules) is quite useful and is a frequent operation that can be required to perform. So provide a fixture that is similar (but not the same) as the warnings ``catch_warnings`` context manager that can be used to gather all warnings emitted and allows people to later analyze them to ensure they are as they expect.
* Use universal wheels.Robert Collins2015-05-041-0/+3
|
* Release 1.1.0 and use pbr 0.11 features.1.1.0Robert Collins2015-05-044-10/+11
|
* Missing NEWS entry.Robert Collins2015-05-041-0/+5
|
* add tox.ini fileSean Dague2015-03-271-0/+12
| | | | | | | | Provide tox configuration to make it easy to run tests locally against different python environments without have to install dependencies into the system. The default env is left at py27 only for compatibility, however tox -e py33 and tox -e py34 will work fine with this in place.
* Fixed test performance on Python 3.5.Robert Collins2015-03-272-4/+8
| | | | | PEP 475 led to ``time.sleep()`` not being interrupted when a received signal handler eats the signal (rather than raising an exception). (Robert Collins)
* Add NEWS for FakeLogger formatter.Robert Collins2015-03-271-0/+2
|
* allow the specification of a custom log formatterSean Dague2015-03-262-2/+30
| | | | | | | | | | When working on OpenStack in tree functional test things like the context information is extremely useful to have access to. This relies on using custom log formatter, which currently can't be done in fixtures. The creates an additional optional parameter for FakeLogger to specify this.
* Release 1.0.01.0.0Robert Collins2014-10-282-1/+4
|
* remote copy/paste from another project.Gabi Davar2014-10-282-5/+8
|
* Release 0.3.17.0.3.17Robert Collins2014-09-263-23/+12
|
* Add support for datefmt in FakeLoggerSean Dague2014-09-263-2/+19
| | | | | | | | | | | | | | | The logging fixture is extremely useful to be used a temp buffer for collecting log messages into a buffer, and only decide if we're going to emit them after some event in the future (like the failure or success of some future criteria). However, in it's current form we are not given access to the datefmt variable of the underlying Formatter, which means we always end up with the default python time string for %(asctime), which looks incorrectly localized many places. This merely adds the ability to pass the datefmt param through to the Formatter. Signed-off-by: Sean Dague <sean@dague.net>
* Migrate to git and pbr.Robert Collins2014-09-2542-46/+76
| | | | No functional changes.
* 0.3.160.3.16Robert Collins2014-08-224-3/+12
| | | | | | | | | | ~~~~~~ CHANGES ------- * Fixed 0.3.15 on Python 2.6 - version info is a plain tuple there. (Robert Collins)
* Release 0.3.150.3.15Robert Collins2014-08-223-2/+5
|
* * ``FakeProcess`` wait() now supports arguments added in Python 3.Robert Collins2014-08-223-1/+8
|\ | | | | | | (Steve Kowalik)
| * * ``FakeProcess`` wait() now supports arguments added in Python 3.Steve Kowalik2014-08-223-1/+7
| | | | | | | | (Steve Kowalik)
* | * ``FakeProcess`` now supports kill(). (Steve Kowalik)Robert Collins2014-08-223-0/+9
|\ \ | |/
| * * ``FakeProcess`` now supports kill(). (Steve Kowalik)Steve Kowalik2014-08-193-0/+8
| |
* | * ``FakePopen`` now supports being called under a context manager (IE: with).Robert Collins2014-08-223-0/+14
|\ \ | |/ | | | | (Steve Kowalik)
| * * ``FakePopen`` now works under a context manager itself.Steve Kowalik2014-08-183-0/+17
| | | | | | | | (Steve Kowalik, #1358085)
* | * ``MonkeyPatch`` now preserves ``staticmethod`` functions.Robert Collins2014-08-223-0/+29
|\ \ | |/ |/| | | (Dan Kenigsberg)
| * MonkeyPatch staticmethodDan Kenigsberg2014-01-192-0/+23
|/ | | | | | | As noticed by Antoni S. Puimedon in http://gerrit.ovirt.org/23378/, in Python 2, setattr(Class, name, func) automatically converts a function into an instancemethod. To keep type(Class.func) as function, staticmethod(func) must be applied explicitly.
* Release 0.3.140.3.14Robert Collins2013-08-163-2/+5
|
* * ``FakePopen`` can now override the returncode attribute.Robert Collins2013-08-163-1/+18
| | | | (Robert Collins)
* More releasing docs.Robert Collins2013-08-161-0/+2
|
* Release 0.3.130.3.13Robert Collins2013-08-164-2/+17
|
* * Documentation hopefully covers ``TestWithFixtures`` a little better.Robert Collins2013-08-163-1/+10
| | | | (Robert Collins, #1102688)
* Ignore an egg-info directory if it exists.Robert Collins2013-08-161-0/+1
|
* * ``setup.py`` now lists the ``testtools`` dependency which was missing.Robert Collins2013-08-162-0/+6
| | | | (Robert Collins, #1103823)
* * ``FakePopen`` now accepts all the parameters available in Python 2.7.Robert Collins2013-08-163-5/+50
| | | | | | | (Robert Collins) * ``FakePopen`` now only passes parameters to the get_info routine if the caller supplied them. (Robert Collins)
* 0.3.12: 0.3.11 with tests for StringStream.0.3.12Robert Collins2012-12-175-5/+48
|
* Oops, setup.py wasn't 3.2 ready.Robert Collins2012-12-171-1/+1
|
* Add Python 3 Trove entry.Robert Collins2012-12-171-0/+1
|
* Release 0.3.11.0.3.11Robert Collins2012-12-173-3/+6
|
* * pydoc is recommended as a source of info about fixtures.Robert Collins2012-12-172-0/+6
| | | | (Robert Collins, #812845)
* * The docs for fixtures have been updated to cover the full API.Robert Collins2012-12-172-2/+32
| | | | (Robert Collins, #1071649)
* * ``DetailStream`` was ambiguous about whether it handled bytes or characters,Robert Collins2012-12-1711-66/+176
|\ | | | | | | | | | | | | which matters a lot for Python3. It now is deprecated with ByteStream and StringStream replacing it. (Robert Collins) * Fixtures is now Python3 compatible. (Robert Collins)
| * Update docs.Robert Collins2012-12-171-5/+18
| |
| * * ``DetailStream`` was ambiguous about whether it handled bytes or characters,Robert Collins2012-12-1710-61/+158
|/ | | | | | | which matters a lot for Python3. It now is deprecated with ByteStream and StringStream replacing it. (Robert Collins) * Fixtures is now Python3 compatible. (Robert Collins)
* * ``FakeLogger`` has been split out into a ``LogHandler`` fixture that canRobert Collins2012-12-165-13/+115
|\ | | | | | | inject arbitrary handlers, giving more flexability. (Jonathan Lange)
| * Drop the MementoHandler stuff.Jonathan Lange2012-12-132-65/+1
| |