Beispiel #1
0
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()
Beispiel #2
0
def initdb():

    fixtures.init()
Beispiel #3
0
 def setup_class(cls):
     os.environ["DATABASE"] = "d_and_d_test"
     fixtures.init()