Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ make test

# Unit tests with coverage report
uv run pytest tests/unit --cov=lago_agent_sdk --cov-report=term-missing

# Integration tests (require credentials — see env vars in each test)
AWS_BEARER_TOKEN_BEDROCK="..." \
MISTRAL_API_KEY="..." \
LAGO_API_URL="..." LAGO_API_KEY="..." LAGO_EXTERNAL_SUBSCRIPTION_ID="..." \
uv run pytest tests/integration -q
```

There is no committed live-provider test tier. Adapter behaviour is pinned by
captured real responses under `tests/unit/adapters/fixtures/`, which is what the
unit tests assert against; re-capture a fixture rather than hand-editing one.

## Linting and type checks

```bash
Expand Down Expand Up @@ -72,7 +70,6 @@ uv lock --upgrade-package X # bump a single package
- `src/lago_agent_sdk/lago_client.py` — thin HTTP client to `/events/batch`
- `tests/unit/` — unit tests, organized to mirror `src/`
- `tests/unit/adapters/fixtures/` — captured real provider responses, used by adapter tests
- `tests/integration/` — live tests, gated on credential env vars

## Adding a provider

Expand All @@ -82,7 +79,6 @@ uv lock --upgrade-package X # bump a single package
4. Update `detector.py` to recognize the client class.
5. Update `sdk.py::wrap()` to dispatch to the new wrapper.
6. Add unit tests against the captured fixtures.
7. Add a live integration test gated on the provider's API key env var.

## Pull request checklist

Expand Down
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,6 @@ pip install -e '.[dev]'
pytest
```

Run live integration tests (requires real credentials):

```bash
AWS_BEARER_TOKEN_BEDROCK="..." \
MISTRAL_API_KEY="..." \
LAGO_API_URL="https://api.getlago.com/api/v1/" \
LAGO_API_KEY="..." \
LAGO_EXTERNAL_SUBSCRIPTION_ID="sub_..." \
pytest tests/integration
```

## Security

Found a vulnerability? See [SECURITY.md](SECURITY.md).
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dev = [
"ruff>=0.6",
"mypy>=1.10",
"types-requests>=2.31",
# every provider SDK (so unit + live integration tests can import them)
# every provider SDK (so the unit + wrapper tests can import them)
"boto3>=1.34",
"mistralai>=2.0",
"anthropic>=0.30",
Expand Down
Empty file removed tests/integration/__init__.py
Empty file.
109 changes: 0 additions & 109 deletions tests/integration/test_lago_reconciliation.py

This file was deleted.

146 changes: 0 additions & 146 deletions tests/integration/test_live_anthropic.py

This file was deleted.

Loading