Skip to content

Commit 55a2522

Browse files
suryaiyer95claude
andcommitted
fix: exclude integration tests from CI — require pytest -m integration to run
- Add `integration` marker to `test_data_diff_integration.py` - Configure `pyproject.toml` to skip integration tests by default - Integration tests require Docker Postgres and matching `altimate-core` build Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 289cdde commit 55a2522

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

packages/altimate-engine/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ dev = ["pytest>=7.0", "ruff>=0.1"]
3232

3333
[tool.pytest.ini_options]
3434
testpaths = ["tests"]
35+
markers = ["integration: requires real databases (DuckDB files, Docker Postgres)"]
36+
addopts = "-m 'not integration'"
3537

3638
[tool.hatch.build.targets.wheel]
3739
packages = ["src/altimate_engine"]

packages/altimate-engine/tests/test_data_diff_integration.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232
except ImportError:
3333
RELADIFF_AVAILABLE = False
3434

35-
pytestmark = pytest.mark.skipif(
36-
not RELADIFF_AVAILABLE, reason="altimate-core not installed"
37-
)
35+
pytestmark = [
36+
pytest.mark.integration,
37+
pytest.mark.skipif(not RELADIFF_AVAILABLE, reason="altimate-core not installed"),
38+
]
3839

3940
from altimate_engine.connections import ConnectionRegistry
4041
from altimate_engine.sql.data_diff import run_data_diff

0 commit comments

Comments
 (0)