Skip to content

Commit 3c14b98

Browse files
committed
Coverage 79%
1 parent 978d6c1 commit 3c14b98

File tree

7 files changed

+30
-0
lines changed

7 files changed

+30
-0
lines changed

README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

552557
If you have `tox`_ installed you can simply call tox inside the root directory
553558
and 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+
557572
FAQ
558573
===
559574

tests/.coverage

52 KB
Binary file not shown.

tests/.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# .coveragerc to control coverage.py
2+
[run]
3+
source = djangosaml2
4+

tests/manage.py

100644100755
File mode changed.

tests/testprofiles/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class TestProfilesConfig(AppConfig):
5+
name = 'testprofiles'
6+
verbose_name = 'Test profiles'

tests/testprofiles/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

2730
class StandaloneUserModel(models.Model):
2831
"""

tests/testprofiles/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from django.conf.urls import include, url
22
from django.contrib import admin
33

4+
app_name='testprofiles'
5+
46
urlpatterns = [
57
url(r'^saml2/', include('djangosaml2.urls')),
68
url(r'^admin/', admin.site.urls),

0 commit comments

Comments
 (0)