@@ -75,7 +75,7 @@ def setup_for_authn_req(self, context, idp_conf, sp_conf, nameid_format=None, re
7575 idp_metadata_str = create_metadata_from_config_dict (samlfrontend .idp_config )
7676 sp_conf ["metadata" ]["inline" ].append (idp_metadata_str )
7777
78- fakesp = FakeSP (SPConfig ().load (sp_conf , metadata_construction = False ))
78+ fakesp = FakeSP (SPConfig ().load (sp_conf ))
7979 destination , auth_req = fakesp .make_auth_req (
8080 samlfrontend .idp_config ["entityid" ],
8181 nameid_format ,
@@ -94,7 +94,7 @@ def setup_for_authn_req(self, context, idp_conf, sp_conf, nameid_format=None, re
9494 return samlfrontend
9595
9696 def get_auth_response (self , samlfrontend , context , internal_response , sp_conf , idp_metadata_str ):
97- sp_config = SPConfig ().load (sp_conf , metadata_construction = False )
97+ sp_config = SPConfig ().load (sp_conf )
9898 resp_args = {
9999 "name_id_policy" : NameIDPolicy (format = NAMEID_FORMAT_TRANSIENT ),
100100 "in_response_to" : None ,
@@ -150,7 +150,7 @@ def test_handle_authn_request(self, context, idp_conf, sp_conf, internal_respons
150150 resp = samlfrontend .handle_authn_response (context , internal_response )
151151 resp_dict = parse_qs (urlparse (resp .message ).query )
152152
153- fakesp = FakeSP (SPConfig ().load (sp_conf , metadata_construction = False ))
153+ fakesp = FakeSP (SPConfig ().load (sp_conf ))
154154 resp = fakesp .parse_authn_request_response (resp_dict ["SAMLResponse" ][0 ],
155155 BINDING_HTTP_REDIRECT )
156156 for key in resp .ava :
@@ -189,7 +189,7 @@ def test_handle_authn_response_without_relay_state(self, context, idp_conf, sp_c
189189 resp = samlfrontend .handle_authn_response (context , internal_response )
190190 resp_dict = parse_qs (urlparse (resp .message ).query )
191191
192- fakesp = FakeSP (SPConfig ().load (sp_conf , metadata_construction = False ))
192+ fakesp = FakeSP (SPConfig ().load (sp_conf ))
193193 resp = fakesp .parse_authn_request_response (resp_dict ["SAMLResponse" ][0 ],
194194 BINDING_HTTP_REDIRECT )
195195
@@ -213,7 +213,7 @@ def test_handle_authn_response_without_name_id(
213213 resp = samlfrontend .handle_authn_response (context , internal_response )
214214 resp_dict = parse_qs (urlparse (resp .message ).query )
215215
216- fakesp = FakeSP (SPConfig ().load (sp_conf , metadata_construction = False ))
216+ fakesp = FakeSP (SPConfig ().load (sp_conf ))
217217 resp = fakesp .parse_authn_request_response (
218218 resp_dict ["SAMLResponse" ][0 ], BINDING_HTTP_REDIRECT )
219219
@@ -548,7 +548,7 @@ def test_co_static_attributes(self, frontend, context, internal_response,
548548 # SP configuration fixture with the metadata.
549549 idp_metadata_str = create_metadata_from_config_dict (idp_conf )
550550 sp_conf ["metadata" ]["inline" ].append (idp_metadata_str )
551- sp_config = SPConfig ().load (sp_conf , metadata_construction = False )
551+ sp_config = SPConfig ().load (sp_conf )
552552
553553 # Use the updated sp_config fixture to generate a fake SP and then
554554 # use the fake SP to generate an authentication request aimed at the
0 commit comments