Files
trezor-agent/tox.ini
Roman Zeyde fb0d0a5f61 server: stop the server via a threading.Event
It seems that Mac OS does not support calling socket.shutdown(socket.SHUT_RD)
on a listening socket (see https://github.com/romanz/trezor-agent/issues/6).
The following implementation will set the accept() timeout to 0.1s and stop
the server if a threading.Event (named "quit_event") is set by the main thread.
2016-01-08 20:28:38 +02:00

16 lines
321 B
INI

[tox]
envlist = py27,py34
[testenv]
deps=
pytest
mock
pep8
coverage
pylint
commands=
pep8 trezor_agent
pylint --reports=no --rcfile .pylintrc trezor_agent
coverage run --omit='trezor_agent/__main__.py' --source trezor_agent -m py.test -v trezor_agent
coverage report
coverage html