예제 #1
0
def test_trailing_slash_routes_result_in_error():
    app = Chalice('appname')
    app.routes = {'/trailing-slash/': None}
    config = {
        'chalice_app': app,
    }
    with pytest.raises(ValueError):
        validate_configuration(config)
예제 #2
0
def test_trailing_slash_routes_result_in_error():
    app = Chalice('appname')
    app.routes = {'/trailing-slash/': None}
    config = {
        'chalice_app':  app,
    }
    with pytest.raises(ValueError):
        validate_configuration(config)
예제 #3
0
def test_empty_route_results_in_error():
    app = Chalice('appname')
    app.routes = {'': {}}
    config = Config.create(chalice_app=app)
    with pytest.raises(ValueError):
        validate_configuration(config)
예제 #4
0
def test_empty_route_results_in_error():
    app = Chalice('appname')
    app.routes = {'': {}}
    config = Config.create(chalice_app=app)
    with pytest.raises(ValueError):
        validate_configuration(config)