Index of the testtools module
-
m
testtools
...
- Tools for controlling test environments.
- a __repos_url__ ...
-
m
stubs
...
- Tools for replacing objects with stubs.
- a StringTypes ...
- C Stub ... - Replace an object with a stub object
-
C
stub_template
...
-
C
NoValue
...
- f mkinterface ... - make a class having the same interface as cls.
- m storage ... - Fixture storage media.
-
m
bgtests
...
- tools for automatically triggering test suites.
- a STDOUT ...
- a PIPE ...
-
C
TestablePackage
...
- encapsulates a package that can be extracted and tested.
- a svnpath ...
- a ex ...
- f skip_notify ... - when True, notification is skipped.
- f setup ... - hook for package to setup environment, etc. before running tests.
- f get_name ... - get the name of this package.
- f recognizes_file ... - should return True if filepath from repos affects this package.
- f __init__ ...
- f runtests ... - runs tests for this package.
-
C
PackageTestHandler
...
- runs test packages via XMLRPC.
- f trigger_from_svnlook ... - analyzes input from svnlook changed and runs tests affected by the change.
- f __init__ ...
- C SvnInspector ... - encapsulates meta data for a repository.
- C Reporter ... - reports the test results.
- f run ... - runs tests in the background.
- f run_packages ... - runs tests for packages who were affected by the last change in a repository.
- m io ... - IO-related testing tools.
- m exceptions ... - exceptions used in testtools
-
m
fixtures
...
- Provides tools to load and inspect test data.
-
m
fixtures
...
-
C
affix
...
- returns a collection of Fixture instances, all attributes shared.
- C RequiredPool ... - encapsulates other fixtures required by a Fixture.
-
C
meta
...
- namespace for Fixture properties.
- C Values ... - encapsulates a Fixture's values (dataset).
- f load ...
- f add_fixture ... - merges attributes from another fixture into self.
- f assert_has ... - assert this fixture has a dataset somewhere in it.
- f clean ...
- f close ...
- f items ... - yields (fixture_key, fixture) in self.
- f data ... - hook for subclasses to return a data definition.
- f __len__ ...
-
C
Fixture
...
- Encapsulates one or more datasets to be loaded into a storage medium.
- f load ... - load all data using stor_obj.save().
- f add_fixture ... - merges attributes from another fixture into self.
- f assert_has ... - assert this fixture has a dataset somewhere in it.
- f __init__ ... - see Fixture for signature.
- f close ...
- f items ... - yields (fixture_key, fixture) in self.
- f data ... - hook for subclasses to return a data definition.
- f __len__ ...
- f with_fixtures ... - decorator that attaches fixtures to a test def.
- f metamethod ... - makes a method Fixture.meta -compatible
-
C
affix
...
- returns a collection of Fixture instances, all attributes shared.
-
m
registry
...
- Private registry for the Fixture class.
-
C
LoadMap
...
- registry of loaded fixtures.
- a registry ...
- C ID ...
- f populate ... - populates fixture instance with loaded fixture.
- f unregister ... - tell registry that this fixture has been unloaded (Fixture.clean()).
- f clear ...
- f register ... - registers a fixture that has been loaded.
- f update ... - updates registered fixture's loaded data.
- f is_registered ... - return True if this fixture is registered as loaded
- f __init__ ...
- f unregister_fixtures ... - remove any and all registered fixtures from the registry.
-
C
LoadMap
...
- registry of loaded fixtures.
-
m
storable
...
- Storable Fixture objects.
-
C
SOFixture
...
- Fixture storable by an SQLObject.
- f find_so_class ... - searches meta.env for an SQLObject named by meta.finder.
- f __init__ ...
- C CsvFixture ... - Fixture storable as a CSV file.
- f find_so_from_table ... - finder method for SOFixture that transforms your fixture class as if it were a table name.
- f find_so_from_data ... - finder method for SOFixture that transforms SomeFixtureData into the name SomeFixture.
- f find_so_from_fixture ... - finder method for SOFixture that passes through your fixture name (no transformation).
-
C
SOFixture
...
- Fixture storable by an SQLObject.
-
m
fixtures
...
-
m
config
...
- common configuration settings.
-
C
debug
...
- namespace for debug settings.
- f reset_debug ... - resets debug stream to the last stream -OR- kwarg strm.
- f set_debug_stderr ... - convenience method for set_debug_stream(sys.stderr).
- f set_debug_stdout ... - convenience method for set_debug_stream(sys.stdout).
- f set_debug_stream ... - tells debug print statements to use strm.
-
C
debug
...
- namespace for debug settings.