summaryrefslogtreecommitdiff
path: root/fixtures/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Add WarningsFilter fixtureStephen Finucane2022-10-191-0/+2
| | | | | | | | | This has enough users around OpenStack to justify adding it to 'fixtures' proper. It's intentionally dumb, since the main purpose of this is to avoid people calling `resetwarnings` in their variant of the fixture, as that clears *all* filters including those we don't control. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Remove six and other Python 2 handling codeStephen Finucane2021-02-251-3/+3
| | | | Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Add CompoundFixtureJonathan Lange2016-02-011-0/+2
| | | | CompoundFixture combines multiple fixtures into one.
* Deal with resource leaks during setUp.Robert Collins2015-06-291-0/+4
| | | | | | | | 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)
* Add a new mockpatch fixtureJulien Danjou2015-06-221-0/+6
| | | | | This fixture provides an easy usage for mock (unittest.mock in Python 3).
* Add a warnings module capture fixureJoshua Harlow2015-05-041-0/+2
| | | | | | | | | | 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.
* Release 1.1.0 and use pbr 0.11 features.1.1.0Robert Collins2015-05-041-7/+4
|
* Release 1.0.01.0.0Robert Collins2014-10-281-1/+1
|
* Release 0.3.17.0.3.17Robert Collins2014-09-261-21/+8
|
* Migrate to git and pbr.Robert Collins2014-09-251-0/+126
No functional changes.