Beispiel #1
0
def client():
    my_app = create_app({
        'TESTING': True,  # Set to True during testing
        'TEST_DATA_PATH':
        TEST_DATA_PATH,  # Path for loading test data into the repository
        'WTF_CSRF_ENABLED':
        False  # test_client will not send a CSRF token, so disable validation
    })
    return my_app.test_client()
Beispiel #2
0
def client():
    my_app = create_app({
        'TESTING': True,  # Set to True during testing.
        'REPOSITORY': 'database',
        'TEST_DATA_PATH':
        TEST_DATA_PATH_DATABASE,  # Path for loading test data into the repository.
        'WTF_CSRF_ENABLED':
        False  # test_client will not send a CSRF token, so disable validation.
    })

    return my_app.test_client()
Beispiel #3
0
"""App entry point."""
from movie_web_app import create_app

app = create_app()

if __name__ == "__main__":
    app.run(host='localhost', port=5000, threaded=False)