Add unit tests, smoke test script, fix CI to debian-host + test job
Some checks failed
Build and Deploy iLSP / test (push) Successful in 19s
Build and Deploy iLSP / build-and-deploy (push) Failing after 29s

- tests/test_catalog.py: 5 unit tests for PypiCatalog (fetch, cache, sort prefix, completions)
- tests/test_proxy.py: 5 unit tests for BicepProxy (framing, injection, list result, passthrough)
- tests/conftest.py: pytest asyncio_mode=auto config
- scripts/smoke_test.sh: end-to-end TCP + health smoke test script
- .gitea/workflows/ci.yml: split into test + build-and-deploy jobs (test blocks deploy)
  - runs-on: debian-host (was ubuntu-latest = broken)
  - test job installs deps + runs pytest before building image
- pyproject.toml: [project.optional-dependencies] dev = pytest + pytest-asyncio
This commit is contained in:
Henrik Jess Nielsen
2026-05-10 12:38:41 +02:00
parent d8536468ab
commit cd17e9bfaa
6 changed files with 339 additions and 43 deletions

5
tests/conftest.py Normal file
View File

@@ -0,0 +1,5 @@
import pytest
# Enable asyncio mode for all tests
def pytest_configure(config):
config.addinivalue_line("markers", "asyncio: mark test as async")