예제 #1
0
def test_functional(flask_app_test):
    config_fname = os.path.join(
        os.path.dirname(__file__),
        'config.py',
    )
    with flask_app_test.test_request_context():
        run_smoke_tests_with_config(config_fname,
                                    run=['fit', 'test', 'predict'])
예제 #2
0
def test_functional(flask_app_test, config_filename):
    config_fname = os.path.join(
        os.path.dirname(__file__),
        config_filename,
    )
    with flask_app_test.test_request_context():
        run_smoke_tests_with_config(
            config_fname,
            run=['fit', 'test', 'predict'],
            func_kwargs={'predict': {
                'path': config2path[config_filename]
            }},
        )
예제 #3
0
def test_functional():
    config_fname = os.path.join(
        os.path.dirname(__file__),
        'config.py',
        )
    run_smoke_tests_with_config(config_fname, run=['fit', 'test', 'predict'])