Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

move tests requirements to a single place

Daniel Graña958d0dbf3987
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644
index 000000000..c2024fc02
--- /dev/null
+++ b/test-requirements.txt
@@ -0,0 +1,2 @@
+mock
+mitmproxy
diff --git a/tox.ini b/tox.ini
index 171feaa98..6b72ee8b4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,9 +13,7 @@ deps =
boto
Pillow
django
- # Only required to run tests
- mock
- mitmproxy
+ -rtest-requirements.txt
commands =
trial {posargs:scrapy}
@@ -29,8 +27,7 @@ deps =
Pillow<2.0
django==1.3.1
cssselect==0.9.1
- mock==1.0.1
- mitmproxy==0.9.2
+ -rtest-requirements.txt
[testenv:trunk]
basepython = python2.7
@@ -48,9 +45,7 @@ deps =
cssselect>=0.9
queuelib>=1.1.1
w3lib>=1.5
- # Only required to run tests
- mock>=1.0.1
- mitmproxy>=0.9.2
+ -rtest-requirements.txt
commands =
trial {posargs:scrapy}