Skip to content

Commit 986be9a

Browse files
committed
Run testsuite with py.test
1 parent f3d1508 commit 986be9a

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ env:
55
- TOXENV=precise
66
- TOXENV=trunk
77
- TOXENV=pypy
8+
- TOXENV=py33
89
matrix:
910
allow_failures:
1011
- env: TOXENV=pypy

tests-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Tests requirements
22
mock
33
mitmproxy >= 0.10
4+
pytest-twisted

tox.ini

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
[tox]
77
envlist = py27, pypy, precise, trunk, py33
8+
indexserver =
9+
HPK = https://devpi.net/hpk/dev/
810

911
[testenv]
1012
deps =
@@ -15,7 +17,7 @@ deps =
1517
django
1618
-rtests-requirements.txt
1719
commands =
18-
trial {posargs:scrapy}
20+
py.test --twisted {posargs:scrapy}
1921

2022
[testenv:precise]
2123
basepython = python2.7
@@ -34,7 +36,7 @@ basepython = python2.7
3436
commands =
3537
pip install https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
3638
pip install https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
37-
trial {posargs:scrapy}
39+
py.test --twisted {posargs:scrapy}
3840

3941
[testenv:py33]
4042
basepython = python3.3
@@ -45,8 +47,10 @@ deps =
4547
cssselect>=0.9
4648
queuelib>=1.1.1
4749
w3lib>=1.5
48-
commands =
49-
trial {posargs:scrapy}
50+
# tests requirements
51+
mock
52+
:HPK:pytest>2.5.2
53+
pytest-twisted
5054

5155
[testenv:windows]
5256
commands =

0 commit comments

Comments
 (0)