Skip to content

Commit 8e23608

Browse files
committed
Add requirements file for travis
In order to install httmock.
1 parent 3cb5f24 commit 8e23608

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ language: python
22
python:
33
- "2.6"
44
- "2.7"
5-
script: python ./test/test_clever.py
5+
script:
6+
- pip install -r ./test/requirements.txt
7+
- python ./test/test_clever.py

test/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
httmock

test/test_clever.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ def test_rate_limiter(self):
149149
functional_test({"api_key": "DEMO_KEY"}),
150150
functional_test({"token": "7f76343d50b9e956138169e8cbb4630bb887b18"}),
151151
AuthenticationErrorTest,
152-
InvalidRequestErrorTest]:
152+
InvalidRequestErrorTest,
153+
TooManyRequestsErrorTest]:
153154
suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestClass))
154155
unittest.TextTestRunner(verbosity=2).run(suite)
155156

0 commit comments

Comments
 (0)