Exemplo n.º 1
0
    def setUp(self):
        """ Test setup """
        self.client = app.test_client()

        # Set up the tables in the database
        Base.metadata.create_all(engine)

        # Create folder for test uploads
        os.mkdir(upload_path())
Exemplo n.º 2
0
    def setUp(self):
        """ Test setup """
        self.client = app.test_client()

        # Set up the tables in the database
        Base.metadata.create_all(engine)

        # Create folder for test uploads
        os.mkdir(upload_path())
Exemplo n.º 3
0
    def setUp(self):

        """ Test setup """
        # Configure our app to use the testing database
        app.config.from_object('tuneful.config.TestingConfig')
        self.client = app.test_client()

        # Set up the tables in the database
        Base.metadata.create_all(engine)

        # Create folder for test uploads
        try:
            os.mkdir(upload_path())
        except OSError:
            print "Folder already created!"