Skip to content

Commit 8b4c6b1

Browse files
committed
fixed test suite
1 parent 71c4f90 commit 8b4c6b1

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
maxcube.egg-info
33
maxcube/__pycache__
44
tests/__pycache__
5+
.cache/v/cache
6+
.coverage
7+
setup.cpython-35-PYTEST.pyc
8+
python_maxcube_api.egg-info

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ python:
66
install:
77
- pip install coveralls
88

9-
script: nosetests
9+
script: run --source maxcube setup.py test
1010

1111
after_success:
1212
- coveralls

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
author_email='[email protected]',
1818
url='https://github.com/goodfield/python-maxcube-api.git',
1919
license=license,
20-
packages=['maxcube']
20+
packages=['maxcube'],
21+
test_suite="tests.maxcube_suite"
2122
)

tests/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import unittest
2+
import tests.test_cube
3+
4+
def maxcube_suite():
5+
loader = unittest.TestLoader()
6+
suite = loader.loadTestsFromModule(test_cube)
7+
return suite

0 commit comments

Comments
 (0)