Index of the fixtures module
-
m
testtools.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 clean ... - perform clean() on all storage objects loaded for this instance only.
- 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
...