Skip to content

Commit

Permalink
Fixes travis test invocation and updates tox to match
Browse files Browse the repository at this point in the history
- Moves to py.test as gives better error messages
  • Loading branch information
tomdottom committed Jun 27, 2018
1 parent b15754f commit 2c6dee6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ install:
# Command to run tests, e.g. python setup.py test
script:
- flake8 thanks
- pip list
- python setup.py test


1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ coverage==4.4.2
Sphinx==1.6.5
twine==1.9.1
ddt
pytest
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ exclude = docs
max-line-length = 120

[aliases]

test=pytest
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
]

setup_requirements = [
'nose'
"pytest-runner"
]

test_requirements = [
"pytest",
'ddt',
]

Expand Down Expand Up @@ -63,7 +64,6 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
test_suite='nose.collector',
tests_require=test_requirements,
setup_requires=setup_requirements,
)
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ deps = flake8
commands = flake8 thanks

[testenv]
whitelist_externals=
py.test
setenv =
PYTHONPATH = {toxinidir}

commands = python setup.py nosetests

commands = python setup.py test

0 comments on commit 2c6dee6

Please sign in to comment.