Files
clice/tests/integration/test_file_operation.py
2025-07-30 23:41:03 +08:00

18 lines
443 B
Python

import sys
import pytest
import asyncio
from ..fixtures.client import LSPClient
@pytest.mark.asyncio
async def test_did_open(executable, test_data_dir, resource_dir):
client = LSPClient([
executable, "--mode=pipe", f"--resource-dir={resource_dir}"
])
await client.start()
await client.initialize(test_data_dir / "hello_world")
await client.did_open("main.cpp")
await asyncio.sleep(5)
await client.exit()