Skip to content

Commit a2f7948

Browse files
committed
Moved tests to separate directory.
1 parent 7ce7dc9 commit a2f7948

File tree

7 files changed

+14
-3
lines changed

7 files changed

+14
-3
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ python:
33
- "2.7"
44
- "3.4"
55
install: pip install -r requirements.txt
6-
script: nosetests -v
6+
script:
7+
- nosetests -v
8+
- ./setup.py build
9+
- ./setup.py sdist
10+
- ./setup.py bdist

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ recursive-include config *
66
recursive-include definitions *.yaml
77
recursive-include tools *.py
88
recursive-exclude tools *.pyc
9+
# The test scripts are not required in a binary distribution package they
10+
# are considered source distribution files and excluded in find_package()
11+
# in setup.py.
12+
recursive-include tests *.py

run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
if __name__ == '__main__':
10-
test_suite = unittest.TestLoader().discover('.', pattern='*_test.py')
10+
test_suite = unittest.TestLoader().discover('tests', pattern='*.py')
1111
test_results = unittest.TextTestRunner(verbosity=2).run(test_suite)
1212
if not test_results.wasSuccessful():
1313
sys.exit(1)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
'Operating System :: OS Independent',
5151
'Programming Language :: Python',
5252
],
53-
packages=find_packages('.', exclude=[u'tools']),
53+
packages=find_packages('.', exclude=[u'tests', u'tests.*', u'tools']),
5454
package_dir={'artifacts': 'artifacts'},
5555
data_files=[
5656
('share/artifacts', glob.glob(os.path.join('definitions', '*'))),
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
from artifacts import source_type
88

99

10+
# pylint: disable=unexpected-keyword-arg
11+
12+
1013
class SourceTypeTest(unittest.TestCase):
1114
"""Class to test the artifact source type."""
1215

0 commit comments

Comments
 (0)