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::
548
548
549
549
python tests/run_tests.py
550
550
551
- or
551
+ or::
552
552
553
553
cd tests/
554
554
./manage.py test djangosaml2
@@ -563,10 +563,12 @@ and it will run the tests in multiple versions of Python.
563
563
Code Coverage
564
564
=============
565
565
566
+ example::
567
+
566
568
cd tests/
567
569
coverage erase
568
570
coverage run ./manage.py test djangosaml2
569
- coverage report
571
+ coverage report -m
570
572
571
573
572
574
FAQ
Original file line number Diff line number Diff line change @@ -278,8 +278,7 @@ def post(self,
278
278
SAML Authorization Response endpoint
279
279
"""
280
280
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 )
283
282
conf = get_config (config_loader_path , request )
284
283
try :
285
284
xmlstr = request .POST ['SAMLResponse' ]
You can’t perform that action at this time.
0 commit comments