Class f.b.Fixture(object):

Part of fixture.base View In Hierarchy

Known subclasses: fixture.loadable.loadable.LoadableFixture

An environment for loading data.

An instance of this class can safely be a module-level object. It may be more useful to use a concrete LoadableFixture, such as SQLAlchemyFixture

Keywords

Class Data loads one or more DataSet objects and provides an interface into that
Method __init__ Undocumented
Method __iter__ Undocumented
Method with_data returns a decorator to wrap data around a method.
Method data returns a Data object for datasets.
def __init__(self, dataclass=None, loader=None):
Undocumented
def __iter__(self):
Undocumented
def with_data(self, *datasets, **cfg):

returns a decorator to wrap data around a method.

All positional arguments are DataSet class objects.

the decorated method will receive a new first argument, the Fixture.Data instance.

Keywords

  • setup
    • optional callable to be executed before test
  • teardown
    • optional callable to be executed (finally) after test
def data(self, *datasets):
returns a Data object for datasets.
API Documentation for fixture, generated by pydoctor.