From 07559ed10387f04019d2c61ce7c14fdd1b9528b7 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Mon, 15 Nov 2010 06:48:54 +1300 Subject: More clarity. --- lib/testresources/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- cgit v1.2.1