18 lines
458 B
Python
18 lines
458 B
Python
import sys
|
|
import pytest
|
|
import asyncio
|
|
from ..fixtures.client import LSPClient
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_initialize(executable, test_data_dir, resource_dir):
|
|
client = LSPClient([
|
|
executable, "--mode=pipe", f"--resource-dir={resource_dir}"
|
|
])
|
|
await client.start()
|
|
result = await client.initialize(test_data_dir)
|
|
assert "serverInfo" in result
|
|
assert result["serverInfo"]["name"] == "clice"
|
|
|
|
await client.exit()
|