def test_direct_resolver():
    mock_event = load_event('appSyncDirectResolver.json')
    app = AppSyncResolver()

    @app.resolver(field_name='createSomething')
    def create_something(id: str):
        assert (app.lambda_context == {})
        return id
    result = app(mock_event, {})
    assert (result == 'my identifier')
def test_direct_resolver():
    mock_event = load_event('appSyncDirectResolver.json')
    app = AppSyncResolver()

    @app.resolver(field_name='createSomething')
    def create_something(id: str):
        assert (app.lambda_context == {})
        return id
    result = app(mock_event, {})
    assert (result == 'my identifier')