We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@pytest_lsp.fixture
Consider the following fixture definition
@pytest_lsp.fixture( scope="session", params=["visual_studio_code", "neovim"], config=ClientServerConfig( server_command=[sys.executable, *SERVER_CMD], ), ) async def client(request, uri_for, lsp_client: LanguageClient): workspace = uri_for("sphinx-default", "workspace") await lsp_client.initialize_session( types.InitializeParams( capabilities=client_capabilities(request.param), workspace_folders=[ types.WorkspaceFolder(uri=str(workspace), name="sphinx-default"), ], ) ) yield # Teardown await lsp_client.shutdown_session()
Which results in the following error
@pytest_asyncio.fixture(**kwargs) async def the_fixture(request): client_server = make_client_server(config) await client_server.start() kwargs = get_fixture_arguments(fn, client_server.client, request) > result = fn(**kwargs) E TypeError: client() missing 1 required positional argument: 'uri_for'
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Consider the following fixture definition
Which results in the following error
The text was updated successfully, but these errors were encountered: