"""Lambda integration test.""" import pytest from src.app import handler @pytest.fixture def fivetran_test_event(): """Simulate an AWS Lambda event with a real connector name.""" return {"connector_id": "aimed_aloha"} def test_fivetran_lambda_handler_integration(fivetran_test_event): """Run end-to-end integration test for Fivetran sync.""" response = handler(fivetran_test_event, None) assert "message" in response assert "Sync triggered for connector" in response["message"] assert "fivetran_response" in response assert response["fivetran_response"] is not None print(response["message"])