def fixtures(param): """ loads and clears fixture data to database """ # create database and load fixture data if param == 'init': init() # clear fixture data elif param == 'clear': clear()
def initdb(): fixtures.init()
def setup_class(cls): os.environ["DATABASE"] = "d_and_d_test" fixtures.init()