File tree 4 files changed +17
-5
lines changed
4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 33
33
_build /
34
34
.cache
35
35
* .swp
36
+ .tox
37
+ env
36
38
37
39
example /idp3 /htdocs /login.mako
38
40
@@ -192,8 +194,6 @@ example/sp-repoze/old_sp.xml
192
194
193
195
example /sp-repoze /sp_conf_2.Pygmalion
194
196
195
- .gitignore.swp
196
-
197
197
example /sp-repoze /sp_conf_2.py
198
198
199
199
sp.xml
Original file line number Diff line number Diff line change @@ -26,3 +26,15 @@ necessary pieces for building a SAML2 service provider or an identity provider.
26
26
The distribution contains examples of both.
27
27
Originally written to work in a WSGI environment there are extensions that
28
28
allow you to use it with other frameworks.
29
+
30
+ Testing
31
+ =======
32
+ PySAML2 uses the `pytest <http://doc.pytest.org/en/latest/ >`_ framework for
33
+ testing. To run the tests on your system's version of python
34
+
35
+ 1. Create and activate a `virtualenv <https://virtualenv.pypa.io/en/stable/ >`_.
36
+ 2. Inside the virtualenv, install the dependencies needed for testing :code: `pip install -r tests/test_requirements.txt `
37
+ 3. Run the tests :code: `py.test tests `
38
+
39
+ To run tests in multiple python environments, you can use
40
+ `pyenv <https://github.com/yyuu/pyenv >`_ with `tox <https://tox.readthedocs.io/en/latest/ >`_.
Original file line number Diff line number Diff line change
1
+ mock==2.0.0
1
2
pymongo==3.0.1
3
+ pytest==3.0.3
2
4
responses==0.5.0
3
- mock
Original file line number Diff line number Diff line change 2
2
envlist = py27,py34
3
3
4
4
[testenv]
5
- deps = pytest
6
- -rtests/test_requirements.txt
5
+ deps = -rtests/test_requirements.txt
7
6
commands = py.test tests/
You can’t perform that action at this time.
0 commit comments