diff options
author | Robert Collins <robertc@robertcollins.net> | 2010-11-15 06:48:54 +1300 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2010-11-15 06:48:54 +1300 |
commit | 07559ed10387f04019d2c61ce7c14fdd1b9528b7 (patch) | |
tree | 9a7c2b8dfc90227ec88168885682794fb34d654e | |
parent | 3937b0b512cdb96a9c5c38dce48a3913905f102d (diff) | |
download | testresources-git-07559ed10387f04019d2c61ce7c14fdd1b9528b7.tar.gz |
More clarity.
-rw-r--r-- | lib/testresources/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/testresources/__init__.py b/lib/testresources/__init__.py index dbb2f01..668a3e3 100644 --- a/lib/testresources/__init__.py +++ b/lib/testresources/__init__.py @@ -625,7 +625,11 @@ class FixtureResource(TestResource): Due to the API of fixtures, dependency_resources are not accessible to the wrapped fixture. However, if you are using resource optimisation, you should wrap any dependencies in a - FixtureResource and set resources appropriately. + FixtureResource and set the resources attribute appropriately. + Note that when this is done, testresources will take care of + calling setUp and cleanUp on the dependency fixtures and so + the fixtures should not implicitly setUp or cleanUp their + dependencies (that have been mapped). See the ``fixtures`` documentation for information on managing dependencies within the ``fixtures`` API. |