示例#1
0
    def prepare(self):
        """
        Load fixtures into the database.
        """

        meta = storage.GenericTable.metadata
        gen = fixtures.Generator(self.db, meta)
        gen.run(dummy=True)
示例#2
0
    def prepare(self):
        """
        Load real-world fixtures into the database.
        """

        meta = storage.GenericTable.metadata
        gen = fixtures.Generator(self.db, meta)
        gen.run(realworld=True, cache=True)