File tree Expand file tree Collapse file tree 5 files changed +9
-14
lines changed
tests/src/Python3_Saml/saml2_tests Expand file tree Collapse file tree 5 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 1818 fail-fast : false
1919 matrix :
2020 python-version :
21- - " 3.7"
2221 - " 3.8"
2322 - " 3.9"
2423 - " 3.10"
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ Installation
9595
9696### Dependencies ###
9797
98- * python => 3.7
98+ * python => 3.8
9999 * [ xmlsec] ( https://pypi.python.org/pypi/xmlsec ) Python bindings for the XML Security Library.
100100 * [ lxml] ( https://pypi.python.org/pypi/lxml ) Python bindings for the libxml2 and libxslt libraries.
101101 * [ isodate] ( https://pypi.python.org/pypi/isodate ) An ISO 8601 date/time/
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ keywords = [
2323 " identity" ,
2424]
2525classifiers = [
26- " Programming Language :: Python :: 3.7" ,
2726 " Programming Language :: Python :: 3.8" ,
2827 " Programming Language :: Python :: 3.9" ,
2928 " Programming Language :: Python :: 3.10" ,
@@ -32,11 +31,11 @@ classifiers = [
3231 " Topic :: Software Development :: Libraries :: Python Modules" ,
3332]
3433dependencies = [
35- " lxml>=4.6.5,!=4.7 .0" ,
36- " xmlsec>=1.3.9 " ,
34+ " lxml>=6.0 .0" ,
35+ " xmlsec>=1.3.14 " ,
3736 " isodate>=0.6.1" ,
3837]
39- requires-python = " >=3.7 "
38+ requires-python = " >=3.8 "
4039
4140[project .urls ]
4241Homepage = " https://saml.info"
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