Files
clice/tests/integration/test_lifecycle.py
2025-08-10 22:31:00 +08:00

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()