Skip to content

Commit

Permalink
Uniformize unittest startup
Browse files Browse the repository at this point in the history
* via tox, unchanged
* via nosetests, no arguments required
* via python ./setup.py, either test or nosetest work without extra
  arguments
  • Loading branch information
EvaSDK committed Feb 15, 2017
1 parent ce3953c commit b77c54f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ build-dir = docs/build
all_files = 1

[upload_sphinx]
upload-dir = docs/build/html
upload-dir = docs/build/html

[nosetests]
verbosity = 2
tests = tests/run.py
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
data_files=[('ghost', ['README.rst',])],
packages=find_packages(),
include_package_data=True,
tests_require=['Flask'],
test_suite='tests.run',
zip_safe=False,
platforms='any',
classifiers=[
Expand Down
1 change: 0 additions & 1 deletion tests/requirements.txt

This file was deleted.

3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ setenv =
passenv = DISPLAY
deps =
pyside: PySide
Flask
nose
commands =
nosetests {posargs} {toxinidir}/tests/run.py
{envpython} ./setup.py nosetests {posargs}

0 comments on commit b77c54f

Please sign in to comment.