@@ -575,17 +575,27 @@ def test_toolbox_tool_underscore_bound_params_property(toolbox_tool: ToolboxTool
575
575
bound_params ["new_param" ] = "new_value"
576
576
577
577
578
- def test_toolbox_tool_underscore_required_auth_params_property (
578
+ def test_toolbox_tool_underscore_required_authn_params_property (
579
579
toolbox_tool : ToolboxTool ,
580
580
):
581
- """Tests the _required_auth_params property returns an immutable MappingProxyType."""
582
- required_auth_params = toolbox_tool ._required_auth_params
583
- assert required_auth_params == {"message" : ["service_a" ]}
584
- assert isinstance (required_auth_params , MappingProxyType )
581
+ """Tests the _required_authn_params property returns an immutable MappingProxyType."""
582
+ required_authn_params = toolbox_tool ._required_authn_params
583
+ assert required_authn_params == {"message" : ["service_a" ]}
584
+ assert isinstance (required_authn_params , MappingProxyType )
585
585
# Verify immutability
586
586
with pytest .raises (TypeError ):
587
- required_auth_params ["new_param" ] = ["new_service" ]
587
+ required_authn_params ["new_param" ] = ["new_service" ]
588
588
589
+ def test_toolbox_tool_underscore_required_authz_tokens_property (
590
+ toolbox_tool : ToolboxTool ,
591
+ ):
592
+ """Tests the _required_authz_tokens property returns an immutable MappingProxyType."""
593
+ required_authz_tokens = toolbox_tool ._required_authz_tokens
594
+ assert required_authz_tokens == ("service_b" ,)
595
+ assert isinstance (required_authz_tokens , tuple )
596
+ # Verify immutability
597
+ with pytest .raises (TypeError ):
598
+ required_authz_tokens [0 ] = "new_service"
589
599
590
600
def test_toolbox_tool_underscore_auth_service_token_getters_property (
591
601
toolbox_tool : ToolboxTool ,
0 commit comments