SIENTIAPDE-1478
Add headers configuration to test API for enhanced request handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user