File tree 3 files changed +9
-18
lines changed
3 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -21,24 +21,23 @@ a link to do a global logout.
21
21
Unit tests
22
22
==========
23
23
24
- You can also run the unit tests as follows::
24
+ Djangosaml2 have a legacy way to do tests, using an example project in `tests ` directory.
25
+ This means that to run tests you have to clone the repository, then install djangosaml2, then run tests using the example project.
26
+
27
+ example::
25
28
26
29
pip install -r requirements-dev.txt
27
30
# or
28
31
pip install djangosaml2[test]
29
- python3 tests/manage.py migrate
30
-
31
- then::
32
32
33
- python tests/run_tests.py
34
33
35
- or ::
36
-
37
- cd tests/
34
+ then ::
35
+ cd tests
36
+ ./manage.py migrate
38
37
./manage.py test djangosaml2
39
38
40
39
41
- If you have `tox `_ installed you can simply call tox inside the root directory
40
+ If you have `tox `_ installed you can simply call ` tox ` inside the root directory
42
41
and it will run the tests in multiple versions of Python.
43
42
44
43
.. _`tox` : http://pypi.python.org/pypi/tox
Original file line number Diff line number Diff line change @@ -48,14 +48,6 @@ installed apps::
48
48
'djangosaml2', # new application
49
49
)
50
50
51
- .. Note ::
52
-
53
- When you finish the configuration you can run the djangosaml2 test suite as
54
- you run any other Django application test suite. Just type ``python manage.py
55
- test djangosaml2 ``.
56
-
57
- Python users need to ``pip install djangosaml2[test] `` in order to run the
58
- tests.
59
51
60
52
SameSite cookie
61
53
===============
Original file line number Diff line number Diff line change 75
75
DATABASES = {
76
76
'default' : {
77
77
'ENGINE' : 'django.db.backends.sqlite3' ,
78
- 'NAME' : os .path .join (BASE_DIR , 'db.sqlite3' ),
78
+ 'NAME' : os .path .join (BASE_DIR , 'tests/ db.sqlite3' ),
79
79
}
80
80
}
81
81
You can’t perform that action at this time.
0 commit comments