Skip to content

Commit d4c4ec2

Browse files
anth-volkclaude
andcommitted
fix: Mark Modal-dependent household impact tests as integration
These tests hit the real Modal API endpoint and fail without MODAL_TOKEN_ID/MODAL_TOKEN_SECRET configured. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f0383b9 commit d4c4ec2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_analysis_household_impact.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from datetime import date
44
from uuid import UUID, uuid4
55

6+
import pytest
7+
68
from policyengine_api.api.household_analysis import (
79
UK_CONFIG,
810
US_CONFIG,
@@ -314,6 +316,7 @@ def test_get_report_not_found(self, client):
314316
# ---------------------------------------------------------------------------
315317

316318

319+
@pytest.mark.integration
317320
class TestHouseholdImpactRecordCreation:
318321
"""Tests for correct record creation."""
319322

@@ -404,6 +407,7 @@ def test_report_links_simulations(self, client, session):
404407
# ---------------------------------------------------------------------------
405408

406409

410+
@pytest.mark.integration
407411
class TestHouseholdImpactDeduplication:
408412
"""Tests for simulation/report deduplication."""
409413

@@ -470,6 +474,7 @@ def test_different_policy_creates_different_simulation(self, client, session):
470474
# ---------------------------------------------------------------------------
471475

472476

477+
@pytest.mark.integration
473478
class TestGetHouseholdImpact:
474479
"""Tests for GET /analysis/household-impact/{report_id}."""
475480

@@ -500,6 +505,7 @@ def test_get_returns_report_data(self, client, session):
500505
# ---------------------------------------------------------------------------
501506

502507

508+
@pytest.mark.integration
503509
class TestUSHouseholdImpact:
504510
"""Tests specific to US households."""
505511

0 commit comments

Comments
 (0)