Beispiel #1
0
def flask_app(volume_manager):
    return Api._create_app(volume_manager)
Beispiel #2
0
def flask_app(volume_manager):
    return Api._create_app(volume_manager, testing=True)
Beispiel #3
0
def flask_app(volume_manager):
    return Api._create_app(volume_manager)
Beispiel #4
0
    def test_create_app(self, testing, volume_manager, m_flask_restful):
        app = Api._create_app(volume_manager, testing)

        assert app.config['TESTING'] == testing
        assert app.api == m_flask_restful
        assert app.volume_manager == volume_manager