8000 Update Makefile and test-requirements · Web5design/twilio-python@ab9ae17 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab9ae17

Browse files
author
Kevin Burke
committed
Update Makefile and test-requirements
1 parent 97894e2 commit ab9ae17

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1+
.PHONY: clean venv install analysis test test-install
2+
13
venv:
24
virtualenv venv
35

46
install: venv
5-
. venv/bin/activate; pip install .
7+
. venv/bin/activate; pip install . --use-mirrors
8+
9+
test-install:
10+
. venv/bin/activate; pip install -r tests/requirements.txt
611

712
analysis:
813
. venv/bin/activate; flake8 --ignore=E123,E126,E128,E501 tests
914
. venv/bin/activate; flake8 --ignore=F401 twilio
1015

1116
test: analysis
1217
. venv/bin/activate; nosetests
18+
19+
clean:
20+
rm -rf venv

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ nose
44
coverage
55
nosexcover
66
flake8
7+
mccabe

tests/test_applications.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import six
22
if six.PY3:
3-
import unittest
4-
else:
5-
import unittest2 as unittest
3+
import unittest # noqa
4+
else: # noqa
5+
import unittest2 as unittest # noqa
66

77
from mock import Mock
88
from twilio.rest.resources import Applications

0 commit comments

Comments
 (0)
0