Skip to content

Commit 3c9de3d

Browse files
committed
chore: mark integration tests
1 parent 79eaaea commit 3c9de3d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ sync:
1010
test:
1111
uv run pytest --cov-report term-missing --cov=openfga_sdk $(if $(TEST),$(TEST),test/)
1212

13+
test-integration:
14+
uv run pytest -m integration --cov-report term-missing --cov=openfga_sdk $(if $(TEST),$(TEST),test/)
15+
1316
# Run linter
1417
lint:
1518
uv run ruff check .

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,15 @@ testpaths = [
131131
"integration",
132132
]
133133

134-
addopts = "--cov=openfga_sdk --cov-report term-missing --cov-report xml --cov-report html"
134+
addopts = "--cov=openfga_sdk --cov-report term-missing --cov-report xml --cov-report html --strict-markers"
135135

136136
asyncio_mode = "strict"
137137
asyncio_default_fixture_loop_scope = "function"
138138

139+
markers = [
140+
"integration: marks tests as integration tests requiring a running OpenFGA server",
141+
]
142+
139143
[tool.mypy]
140144
python_version = "3.10"
141145
packages = "openfga_sdk"

test/error_integration_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
],
5454
}
5555

56-
56+
@pytest.mark.integration
5757
@pytest.mark.asyncio
5858
class TestErrorIntegration:
5959
"""Integration tests for enhanced error handling."""
@@ -424,6 +424,7 @@ async def test_error_details_not_lost_in_traceback(self, fga_client):
424424

425425

426426
# Sync version of tests
427+
@pytest.mark.integration
427428
class TestErrorIntegrationSync:
428429
"""Synchronous integration tests for enhanced error handling."""
429430

0 commit comments

Comments
 (0)