8000 Add betamax to test deps · jfly/github3.py@b0912ef · GitHub
[go: up one dir, main page]

Skip to content

Commit b0912ef

Browse files
committed
Add betamax to test deps
1 parent d5053b6 commit b0912ef

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ travis:
1717
tests: travis
1818

1919
test-deps:
20-
pip install -r requirements.txt
20+
pip install -r dev-requirements.txt
2121

2222
htmlcov: .coverage
2323
coverage html --omit=github3/packages/*

requirements.txt renamed to dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
requests==1.2.3
22
uritemplate.py==0.2.0
3-
git+git://github.com/garybernhardt/expecter.git
3+
betamax==0.1.0
44
coverage==3.5.2
55
mock==1.0.1
66
pytest==2.3.5

setup.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"github3.issues",
1717
]
1818

19-
kwargs['tests_require'] = ['mock==1.0.1', 'expecter', 'pytest==2.3.5']
19+
kwargs['tests_require'] = ['mock==1.0.1', 'betamax', 'pytest==2.3.5']
2020
if sys.version_info < (3, 0):
2121
kwargs['tests_require'].append('unittest2==0.5.1')
2222
packages.append('tests')
@@ -39,16 +39,18 @@
3939
if not __version__:
4040
raise RuntimeError('Cannot find version information')
4141

42+
4243
class PyTest(TestCommand):
43-
def finalize_options(self):
44-
TestCommand.finalize_options(self)
45-
self.test_args = ['-q', 'tests/']
46-
self.test_suite = True
47-
def run_tests(self):
48-
#import here, cause outside the eggs aren't loaded
49-
import pytest
50-
errno = pytest.main(self.test_args)
51-
sys.exit(errno)
44+
def finalize_options(self):
45+
TestCommand.finalize_options(self)
46+
self.test_args = ['-q', 'tests/']
47+
self.test_suite = True
48+
49+
def run_tests(self):
50+
#import here, cause outside the eggs aren't loaded
51+
import pytest
52+
errno = pytest.main(self.test_args)
53+
sys.exit(errno)
5254

5355
setup(
5456
name="github3.py",

0 commit comments

Comments
 (0)
0