summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2010-11-15 06:48:54 +1300
committerRobert Collins <robertc@robertcollins.net>2010-11-15 06:48:54 +1300
commit07559ed10387f04019d2c61ce7c14fdd1b9528b7 (patch)
tree9a7c2b8dfc90227ec88168885682794fb34d654e
parent3937b0b512cdb96a9c5c38dce48a3913905f102d (diff)
downloadtestresources-git-07559ed10387f04019d2c61ce7c14fdd1b9528b7.tar.gz
More clarity.
-rw-r--r--lib/testresources/__init__.py6
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.