File tree Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
- python : 2.7
3
- env :
4
- - TOX_ENV=py26
5
- - TOX_ENV=py27
6
- - TOX_ENV=py32
7
- - TOX_ENV=py33
8
- - TOX_ENV= pypy
2
+ python :
3
+ - 2.6
4
+ - 2.7
5
+ - 3.2
6
+ - 3.3
7
+ - 3.4
8
+ - pypy
9
9
10
10
install :
11
- - pip install tox
11
+ - pip install coveralls --use-wheel
12
12
13
13
script :
14
- - tox -e $TOX_ENV
14
+ - python setup.py develop
15
+ - coverage run --source=pytest_mock.py runtests.py
16
+
17
+ after_success :
18
+ - coveralls
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ of a test:
25
25
26
26
.. |ci | image :: http://img.shields.io/travis/nicoddemus/pytest-mock.png
27
27
:target: https://travis-ci.org/nicoddemus/pytest-mock
28
+
29
+ .. |coverage | image :: http://img.shields.io/coveralls/nicoddemus/pytest-mock.png
30
+ :target: https://coveralls.io/r/nicoddemus/pytest-mock
28
31
29
32
Usage
30
33
=====
Original file line number Diff line number Diff line change 3
3
import pytest
4
4
5
5
6
- if sys .version_info >= (3 , 3 ):
6
+ if sys .version_info >= (3 , 3 ): # pragma: no cover
7
7
import unittest .mock as mock_module
8
8
else :
9
9
import mock as mock_module
Original file line number Diff line number Diff line change
1
+ # simple pytest wrapper so we can execute it using "coverage run"
2
+ import pytest , sys
3
+ sys .exit (pytest .main ())
You can’t perform that action at this time.
0 commit comments