Skip to content

Commit 34fa217

Browse files
jucorclaude
andcommitted
Fail test_run_math_pipeline_e2e fast when DynamoDB is unavailable
Add require_dynamodb() guard to the dynamodb_resource fixture so it fails in ~3s instead of hanging on a TCP connection to stopped DynamoDB. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a9e52fe commit 34fa217

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

delphi/tests/test_math_pipeline_runs_e2e.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
@pytest.fixture(scope="module")
3333
def dynamodb_resource():
3434
"""Create a resource connection to the test DynamoDB."""
35+
from tests.conftest import require_dynamodb
36+
require_dynamodb()
37+
3538
endpoint_url = os.environ.get('DYNAMODB_ENDPOINT', 'http://localhost:8000')
3639
if not endpoint_url:
3740
pytest.fail("DYNAMODB_ENDPOINT not set. Cannot connect to test DynamoDB.")

0 commit comments

Comments
 (0)