Fixtures defines a Python contract for reusable state / support logic,
primarily for unit testing. Helper and adaption logic is included to make it
easy to write your own fixtures using the fixtures contract. Glue code is
provided that makes using fixtures that meet the Fixtures contract in unittest
compatible test cases easy and straight forward.
Bugs belong in Launchpad.
Source code is in https:/
Releases are on pypi https:/
Standard Python unittest.py provides no obvious method for making and reusing
state needed in a test case other than by adding a method on the test class.
This scales poorly - complex helper functions propogating up a test class
hierarchy is a regular pattern when this is done. Mocking while a great tool
doesn't itself prevent this (and helpers to mock complex things can accumulate
in the same way if placed on the test class).
By defining a uniform contract where helpers have no dependency on the test
class we permit all the regular code hygiene activities to take place without
the distorting influence of being in a class hierarchy that is modelling an
entirely different thing - which is what helpers on a TestCase suffer from.
Project information
- Maintainer:
- python-fixtures committers
- Driver:
- Not yet selected
- Licence:
- Apache Licence, Simplified BSD Licence
View full history Series and milestones
trunk series is the current focus of development.
All packages Packages in Distributions
-
python-fixtures source package in Xenial
Version 1.3.1-2 uploaded -
python-fixtures source package in Trusty
Version 0.3.14-1ubuntu2 uploaded -
python-fixtures source package in Sid
Version 4.0.1-3 uploaded -
python-fixtures source package in Precise
Version 0.3.6-1ubuntu1 uploaded -
python-fixtures source package in Oneiric based series for Ubuntu LEB
Version 0.3.5-1ubuntu1 uploaded
All bugs Latest bugs reported
-
Bug #1638918: SetupError should not have __context__ (causes "During handling of the above exception, another exception occurred")
Reported -
Bug #1567618: Fixtures 2.0 is overly strict on monkeypatch requirements
Reported -
Bug #1560630: Python 3 monkeypatched staticmethods cleanup improperly
Reported -
Bug #1542984: fixtures 1.2.0 isn't compatible with testtools 2.0.0
Reported -
Bug #1503049: Have FakeLogger detect bad calls to logger
Reported