From a9b098dca5ef48ad28e586fa8204048fd0d99405 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 29 Jan 2026 10:04:10 -0300 Subject: [PATCH] SIENTIAPDE-1478 Add headers configuration to test API for enhanced request handling --- tests/activities/test_api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/activities/test_api.py b/tests/activities/test_api.py index dbfbd2e..1386ee7 100644 --- a/tests/activities/test_api.py +++ b/tests/activities/test_api.py @@ -67,6 +67,12 @@ def test_api_initialization(mock_pi_web_api_client): logger=logger, notification_handler=notification_handler, metrics_controller=metrics_controller, + headers_config={ + 'Content-Type': 'application/json', + 'Accept': 'application/json', + 'x-requested-with': 'piwebapistreams', + 'User-Agent': 'Aig-Scouter-Agent/1.0', + }, ) assert activity.pi_web_api_client is not None