File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,14 +6,18 @@ uv run pytest tests/unit
66```
77
88## Integration tests
9- Require Docker and a reachable Postgres instance. Disabled by default.
9+ The ` tests/integration/test_docker_runner.py ` require Docker and a reachable Postgres instance.
10+
11+ The ` tests/integration/test_submission_api_session_integration.py ` require a deployed 5STES instance.
12+
13+ All integration tests are disabled by default. Run via:
1014
1115``` bash
1216uv run pytest tests/integration -m integration
1317```
1418
1519## Docker smoke tests
16- Compose-based smoke tests for the analytics and bunny-wrapper containers.
20+ Compose-based entrypoint smoke tests for the analytics and bunny-wrapper containers.
1721``` bash
1822docker compose -f docker/analytics-dev/test.compose.yml up -d
1923docker compose -f docker/bunny-wrapper/test.compose.yml up -d
Original file line number Diff line number Diff line change 1111- The Click CLI interface: expected options, their names, and defaults.
1212
1313All tests are unit tests — external dependencies (SQLAlchemy engine, database
14- connections) are mocked. No real database or container is required.
14+ connections) are mocked.
15+
16+ There is one integration style test: TestClickCLI.test_main_function_with_contingency_table
17+ but we classify as unit test for our purposes as it requires no external infrastacture (uses SQlLite).
1518"""
1619import json
1720import os
@@ -450,7 +453,6 @@ def test_main_function_with_percentile_sketch(self):
450453 if os .path .exists (temp_filename ):
451454 os .remove (temp_filename )
452455
453- @pytest .mark .integration
454456 def test_main_function_with_contingency_table (self ):
455457 """Test main function with contingency table analysis."""
456458 user_query = "SELECT gender, race FROM patients"
You can’t perform that action at this time.
0 commit comments