File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ You can also run the unit tests as follows::
548548
549549 python tests/run_tests.py
550550
551- or
551+ or::
552552
553553 cd tests/
554554 ./manage.py test djangosaml2
@@ -563,10 +563,12 @@ and it will run the tests in multiple versions of Python.
563563Code Coverage
564564=============
565565
566+ example::
567+
566568 cd tests/
567569 coverage erase
568570 coverage run ./manage.py test djangosaml2
569- coverage report
571+ coverage report -m
570572
571573
572574FAQ
Original file line number Diff line number Diff line change @@ -278,8 +278,7 @@ def post(self,
278278 SAML Authorization Response endpoint
279279 """
280280 attribute_mapping = attribute_mapping or get_custom_setting ('SAML_ATTRIBUTE_MAPPING' , {'uid' : ('username' , )})
281- create_unknown_user = create_unknown_user if create_unknown_user is not None else \
282- get_custom_setting ('SAML_CREATE_UNKNOWN_USER' , True )
281+ create_unknown_user = create_unknown_user or get_custom_setting ('SAML_CREATE_UNKNOWN_USER' , True )
283282 conf = get_config (config_loader_path , request )
284283 try :
285284 xmlstr = request .POST ['SAMLResponse' ]
You can’t perform that action at this time.
0 commit comments