summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2011-12-05 15:32:11 +1300
committerRobert Collins <robertc@robertcollins.net>2011-12-05 15:32:11 +1300
commitb20e3cb4eb6b1bd36ecc337d21ae8f2610c66231 (patch)
treec404d9b71950ae49b94c3d9479b62a6750c0e604 /README
parentdb6ebfa2c969ec40171e029e4172cf8c0975ecaf (diff)
parentcb629cc11c302337960bcf896912bbf400d533b8 (diff)
downloadfixtures-b20e3cb4eb6b1bd36ecc337d21ae8f2610c66231.tar.gz
Rationalise fixture names. (Jonathan Lange)
Diffstat (limited to 'README')
-rw-r--r--README30
1 files changed, 15 insertions, 15 deletions
diff --git a/README b/README
index 4303e16..a0dd865 100644
--- a/README
+++ b/README
@@ -266,21 +266,30 @@ In addition to the Fixture, FunctionFixture and MethodFixture classes fixtures
includes a number of precanned fixtures. The API docs for fixtures will list
the complete set of these, should the dcs be out of date or not to hand.
-EnvironmentVariableFixture
-++++++++++++++++++++++++++
+EnvironmentVariable
++++++++++++++++++++
Isolate your code from environmental variables, delete them or set them to a
new value.
- >>> fixture = fixtures.EnvironmentVariableFixture('HOME')
+ >>> fixture = fixtures.EnvironmentVariable('HOME')
-LoggerFixture
-+++++++++++++
+FakeLogger
+++++++++++
Isolate your code from an external logging configuration - so that your test
gets the output from logged messages, but they don't go to e.g. the console.
- >>> fixture = fixtures.LoggerFixture()
+ >>> fixture = fixtures.FakeLogger()
+
+FakePopen
++++++++++
+
+Pretend to run an external command rather than needing it to be present to run
+tests.
+
+ >>> from testtools.compat import BytesIO
+ >>> fixture = fixtures.FakePopen(lambda _:{'stdout': BytesIO('foobar')})
MonkeyPatch
+++++++++++
@@ -300,15 +309,6 @@ happens, if it isn't then it is added on setUp and removed on cleanUp.
>>> fixture = fixtures.PackagePathEntry('package/name', '/foo/bar')
-PopenFixture
-++++++++++++
-
-Pretend to run an external command rather than needing it to be present to run
-tests.
-
- >>> from testtools.compat import BytesIO
- >>> fixture = fixtures.PopenFixture(lambda _:{'stdout': BytesIO('foobar')})
-
PythonPackage
+++++++++++++