单元测试 - tox 使用
1. 问题一
$ tox -e pep8 -- testdemo.server pep8 installed: alembic==0.8.9,amqp==1.4.9,appdirs==1.4.0,Babel==2.3.4,beautifulsoup4==4.5.3,cachetools==2.0.0,contextlib2==0.5.4,debtcollector==1.10.0,decorator==4.0.10,enum-compat==0.0.2,eventlet==0.20.1,extras==1.0.0,fasteners==0.14.1,fixtures==3.0.0,flake8==3.2.1,futurist==0.20.0,greenlet==0.4.11,iso8601==0.1.11,Jinja2==2.9.4,keystoneauth1==2.17.0,keystonemiddleware==4.10.0,kombu==4.0.2,linecache2==1.0.0,logutils==0.3.3,Mako==1.0.6,MarkupSafe==0.23,mccabe==0.5.3,mock==2.0.0,monotonic==1.2,mox3==0.18.0,msgpack-python==0.4.8,netaddr==0.7.18,netifaces==0.10.5,os-client-config==1.24.0,oslo.concurrency==3.15.0,oslo.config==3.21.0,oslo.context==2.11.0,oslo.db==4.16.0,oslo.i18n==3.11.0,oslo.log==3.17.0,oslo.messaging==5.12.0,oslo.middleware==3.20.0,oslo.reports==1.15.0,oslo.serialization==2.15.0,oslo.service==1.18.0,oslo.utils==3.21.0,oslo.versionedobjects==1.18.0,oslotest==2.12.0,Paste==2.0.3,PasteDeploy==1.5.2,pbr==1.10.0,pecan==1.2.1,pep8==1.7.0,pika==0.10.0,pika-pool==0.1.3,pkg-resources==0.0.0,positional==1.1.1,prettytable==0.7.2,psutil==1.2.1,pycadf==2.4.0,pycodestyle==2.2.0,pyflakes==1.3.0,pyinotify==0.9.6,PyMySQL==0.7.9,pyparsing==2.1.10,python-dateutil==2.6.0,python-editor==1.0.3,python-keystoneclient==3.8.0,python-memcached==1.58,python-mimeparse==1.6.0,python-subunit==1.2.0,pytz==2016.10,PyYAML==3.12,repoze.lru==0.6,requests==2.12.4,requestsexceptions==1.1.3,retrying==1.3.3,rfc3986==0.4.1,Routes==2.4.1,simplegeneric==0.8.1,six==1.10.0,SQLAlchemy==1.0.16,sqlalchemy-migrate==0.10.0,sqlparse==0.2.2,stevedore==1.19.1,Tempita==0.5.2,testrepository==0.0.20,testscenarios==0.5.0,testtools==2.2.0,traceback2==1.4.0,unittest2==1.1.0,waitress==1.0.1,WebOb==1.7.0,WebTest==2.0.24,Werkzeug==0.11.15,wrapt==1.10.8,WSME==0.8.0 _________________________________________________________________________________________________ summary __________________________________________________________________________________________________ ERROR: pep8: InvocationError: '/opt/platform/testdemo/.tox/pep8/bin/python /opt/platform/testdemo/setup.py --name'
解决办法:
未知