File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
tests/src/Python3_Saml/saml2_tests Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,7 @@ def get_metadata(
5454 ctx = None
5555 if not validate_cert :
5656 if cafile or capath :
57- raise ValueError (
58- "Specifying 'cafile' or 'capath' while disabling certificate "
59- "validation is contradictory."
60- )
57+ raise ValueError ("Specifying 'cafile' or 'capath' while disabling certificate " "validation is contradictory." )
6158 ctx = ssl .create_default_context ()
6259 ctx .check_hostname = False
6360 ctx .verify_mode = ssl .CERT_NONE
Original file line number Diff line number Diff line change @@ -97,18 +97,18 @@ def testLoadSettingsFromDict(self):
9797
9898 # test if the cert-file is loaded correct with the default filename
9999 settings_info = self .loadSettingsJSON ()
100- settings_info [' security' ][ ' nameIdEncrypted' ] = True
101- del settings_info [' idp' ][ ' x509cert' ]
100+ settings_info [" security" ][ " nameIdEncrypted" ] = True
101+ del settings_info [" idp" ][ " x509cert" ]
102102 settings_7 = OneLogin_Saml2_Settings (settings_info )
103103 self .assertEqual (len (settings_7 .get_errors ()), 0 )
104104
105105 # test if the cert-file is loaded correct with a custom filename
106- settings_info [' idp' ][ ' cert_filename' ] = "Test_Root_CA.crt"
106+ settings_info [" idp" ][ " cert_filename" ] = "Test_Root_CA.crt"
107107 settings_8 = OneLogin_Saml2_Settings (settings_info )
108108 self .assertEqual (len (settings_8 .get_errors ()), 0 )
109109
110110 # test for the correct error, if there is no cert at all
111- settings_info [' idp' ][ ' cert_filename' ] = "not_existing_file.crt"
111+ settings_info [" idp" ][ " cert_filename" ] = "not_existing_file.crt"
112112 try :
113113 settings_9 = OneLogin_Saml2_Settings (settings_info )
114114 self .assertNotEqual (len (settings_9 .get_errors ()), 0 )
You can’t perform that action at this time.
0 commit comments