diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2022-10-01 01:02:00 +0300 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2022-10-01 18:19:11 +0300 |
commit | c280a912057a3caa82d0ec3b64bb9d208a28677e (patch) | |
tree | 7a0567d734fd9d27d30964c51f414a2c20328ec9 /tests/idp_conf.py | |
parent | 3007eb7231a6f4e4006614643e67354698900aef (diff) | |
download | pysaml2-c280a912057a3caa82d0ec3b64bb9d208a28677e.tar.gz |
Format code with black and isort
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'tests/idp_conf.py')
-rw-r--r-- | tests/idp_conf.py | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/tests/idp_conf.py b/tests/idp_conf.py index d805207e..9411554d 100644 --- a/tests/idp_conf.py +++ b/tests/idp_conf.py @@ -1,11 +1,13 @@ -from saml2 import BINDING_SOAP -from saml2 import BINDING_HTTP_REDIRECT +from pathutils import full_path +from pathutils import xmlsec_path + from saml2 import BINDING_HTTP_POST -from saml2.saml import NAMEID_FORMAT_PERSISTENT, NAME_FORMAT_BASIC +from saml2 import BINDING_HTTP_REDIRECT +from saml2 import BINDING_SOAP +from saml2.saml import NAME_FORMAT_BASIC from saml2.saml import NAME_FORMAT_URI +from saml2.saml import NAMEID_FORMAT_PERSISTENT -from pathutils import full_path -from pathutils import xmlsec_path BASE = "http://localhost:8088" @@ -15,11 +17,8 @@ CONFIG = { "service": { "idp": { "endpoints": { - "single_sign_on_service": [ - ("%s/sso" % BASE, BINDING_HTTP_REDIRECT)], - "single_logout_service": [ - ("%s/slo" % BASE, BINDING_SOAP), - ("%s/slop" % BASE, BINDING_HTTP_POST)] + "single_sign_on_service": [("%s/sso" % BASE, BINDING_HTTP_REDIRECT)], + "single_logout_service": [("%s/slo" % BASE, BINDING_SOAP), ("%s/slop" % BASE, BINDING_HTTP_POST)], }, "policy": { "default": { @@ -34,24 +33,28 @@ CONFIG = { "https://example.com/sp": { "lifetime": {"minutes": 5}, "nameid_format": NAMEID_FORMAT_PERSISTENT, - "name_form": NAME_FORMAT_BASIC - } + "name_form": NAME_FORMAT_BASIC, + }, }, "subject_data": full_path("subject_data.db"), - #"domain": "umu.se", - #"name_qualifier": "" + # "domain": "umu.se", + # "name_qualifier": "" }, }, "debug": 1, "key_file": full_path("test.key"), "cert_file": full_path("test.pem"), "xmlsec_binary": xmlsec_path, - "metadata": [{ - "class": "saml2.mdstore.MetaDataFile", - "metadata": [(full_path("metadata_sp_1.xml"), ), - (full_path("metadata_sp_2.xml"), ), - (full_path("vo_metadata.xml"), )], - }], + "metadata": [ + { + "class": "saml2.mdstore.MetaDataFile", + "metadata": [ + (full_path("metadata_sp_1.xml"),), + (full_path("metadata_sp_2.xml"),), + (full_path("vo_metadata.xml"),), + ], + } + ], "attribute_map_dir": full_path("attributemaps"), "organization": { "name": "Exempel AB", |