Skip to content

Commit 2f9b34c

Browse files
committed
Use a more python-standard test setup
Use `python setup.py test` to run the tests, and a few minor changes required to support that.
1 parent 3f3ed92 commit 2f9b34c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ install:
77
- pip install flake8
88
script:
99
- flake8 homu
10-
- cd homu
11-
- python -m unittest
10+
- pip install -e .
11+
- python setup.py test

homu/tests/__init__.py

Whitespace-only changes.

homu/test_parse_issue_comment.py renamed to homu/tests/test_parse_issue_comment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
from parse_issue_comment import parse_issue_comment
2+
from homu.parse_issue_comment import parse_issue_comment
33

44
# Random commit number. Just so that we don't need to come up with a new one
55
# for every test.

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
version='0.3.0',
66
author='Barosl Lee',
77
url='https://github.com/barosl/homu',
8+
test_suite='homu.tests',
89
description=('A bot that integrates with GitHub '
910
'and your favorite continuous integration service'),
1011

0 commit comments

Comments
 (0)