コード例 #1
0
    def tearDown(self):
        """
        Tear down the environment after each executed test.

        :return: Nothing.
        """
        # Remove the session and drop de DB
        db.session.remove()
        db.reflect()
        db.drop_all()

        # Delete the SQLite file
        os.remove(db.session.bind.url.database)
コード例 #2
0
    def tearDown(self):
        """
        Remove the registries and delete the DB at the end of each test.

        :return: Nothing.
        """
        # Remove the session and drop de DB
        db.session.remove()
        db.reflect()
        db.drop_all()

        # Delete the SQLite file
        os.remove(db.session.bind.url.database)
コード例 #3
0
    def tearDown(self):
        """
        Tear down the environment after each executed test.

        :return: Nothing.
        """
        # Remove the session and drop de DB
        db.session.remove()
        db.reflect()
        db.drop_all()

        # Delete the SQLite file
        os.remove(db.session.bind.url.database)
コード例 #4
0
    def tearDown(self):
        """
        Remove the registries and delete the DB at the end of each test.

        :return: Nothing.
        """
        # Remove the session and drop de DB
        db.session.remove()
        db.reflect()
        db.drop_all()

        # Delete the SQLite file
        os.remove(db.session.bind.url.database)