Class f.c.g.g.FixtureSet(object):

Part of fixture.command.generate.generate View In Hierarchy

a key, data_dict pair for a set in a fixture.

takes a data attribute which must be understood by the concrete FixtureSet

Method __init__ Undocumented
Method __repr__ Undocumented
Method attr_to_db_col returns a database column name for a fixture set's attribute.
Method get_id_attr returns the name of this set's id attribute.
Method mk_key return a unique key for this fixture set.
Method mk_var_name returns a variable name for the instance of the fixture class.
Method obj_id returns a unique value that identifies the object used
Method set_id returns a unique value that identifies this set
def __init__(self, data):
Undocumented
def __repr__(self):
Undocumented
def attr_to_db_col(self, col):
returns a database column name for a fixture set's attribute.

this is only useful for sqlobject in how it wants camel case.

def get_id_attr(self):
returns the name of this set's id attribute.

i.e. "id"

def mk_key(self):
return a unique key for this fixture set.

i.e. <dataclass>_<primarykey>

def mk_var_name(self):
returns a variable name for the instance of the fixture class.
def obj_id(self):
returns a unique value that identifies the object used to generate this fixture.

by default this is the name of the data model, i.e. Employees

def set_id(self):
returns a unique value that identifies this set within its class.

i.e. primary key for the row

API Documentation for fixture, generated by pydoctor.