File tree Expand file tree Collapse file tree 7 files changed +30
-0
lines changed Expand file tree Collapse file tree 7 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -548,12 +548,27 @@ You can also run the unit tests as follows::
548548
549549 python tests/run_tests.py
550550
551+ or
552+
553+ cd tests/
554+ ./manage.py test djangosaml2
555+
551556
552557If you have `tox `_ installed you can simply call tox inside the root directory
553558and it will run the tests in multiple versions of Python.
554559
555560.. _`tox` : http://pypi.python.org/pypi/tox
556561
562+
563+ Code Coverage
564+ =============
565+
566+ cd tests/
567+ coverage erase
568+ coverage run ./manage.py test djangosaml2
569+ coverage report
570+
571+
557572FAQ
558573===
559574
Original file line number Diff line number Diff line change 1+ # .coveragerc to control coverage.py
2+ [run]
3+ source = djangosaml2
4+
Original file line number Diff line number Diff line change 1+ from django .apps import AppConfig
2+
3+
4+ class TestProfilesConfig (AppConfig ):
5+ name = 'testprofiles'
6+ verbose_name = 'Test profiles'
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ class TestUser(AbstractUser):
2323 def process_first_name (self , first_name ):
2424 self .first_name = first_name [0 ]
2525
26+ class Meta :
27+ app_label = 'testprofiles'
28+
2629
2730class StandaloneUserModel (models .Model ):
2831 """
Original file line number Diff line number Diff line change 11from django .conf .urls import include , url
22from django .contrib import admin
33
4+ app_name = 'testprofiles'
5+
46urlpatterns = [
57 url (r'^saml2/' , include ('djangosaml2.urls' )),
68 url (r'^admin/' , admin .site .urls ),
You can’t perform that action at this time.
0 commit comments