()
| 214 | |
| 215 | |
| 216 | async def test_pylsp_server(): |
| 217 | import sys |
| 218 | |
| 219 | server = PyLspServer(port=8000) |
| 220 | |
| 221 | assert isinstance(server.validate_requirements(), (str, bool)) |
| 222 | assert server.get_command() == [ |
| 223 | sys.executable, |
| 224 | "-m", |
| 225 | "pylsp", |
| 226 | "--ws", |
| 227 | "-v", |
| 228 | "--port", |
| 229 | "8000", |
| 230 | "--check-parent-process", |
| 231 | "--log-file", |
| 232 | str(get_log_directory() / "pylsp.log"), |
| 233 | ] |
| 234 | alert = server.missing_binary_alert() |
| 235 | assert "Python LSP" in alert.title |
| 236 | |
| 237 | |
| 238 | def test_copilot_server(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…