Skip to content

Instantly share code, notes, and snippets.

@seanh
Created April 17, 2018 13:18
Show Gist options
  • Save seanh/1e8bee4476eca4d7f29e4c8d62f01171 to your computer and use it in GitHub Desktop.
Save seanh/1e8bee4476eca4d7f29e4c8d62f01171 to your computer and use it in GitHub Desktop.
functional installed: alembic==0.9.7,amqp==2.2.2,asn1crypto==0.22.0,attrs==17.4.0,backports.functools-lru-cache==1.2.1,bcrypt==3.1.3,beautifulsoup4==4.6.0,billiard==3.5.0.3,bleach==2.1.3,celery==4.1.0,certifi==2016.2.28,cffi==1.7.0,Chameleon==2.24,click==6.6,colander==1.3.1,contextlib2==0.5.4,cryptography==2.1.4,deform==0.9.9,deform-jinja2==0.5,elasticsearch==1.9.0,enum34==1.1.6,factory-boy==2.10.0,Faker==0.8.12,funcsigs==1.0.2,functools32==3.2.3.post2,gevent==1.2.1,greenlet==0.4.10,gunicorn==19.6.0,html5lib==0.999999999,idna==2.5,ipaddress==1.0.18,iso8601==0.1.11,itsdangerous==0.24,Jinja2==2.8,jsonpointer==1.0,jsonschema==2.5.1,kombu==4.1.0,Mako==1.0.4,MarkupSafe==0.23,mistune==0.7.3,more-itertools==4.1.0,newrelic==2.106.1.88,oauthlib==2.0.2,passlib==1.7.1,PasteDeploy==1.5.2,peppercorn==0.5,pluggy==0.6.0,psycogreen==1.0,psycopg2==2.7.3.2,py==1.5.3,pycparser==2.14,PyJWT==1.5.3,pyparsing==2.1.10,pyramid==1.7.3,pyramid-authsanity==1.0.0,pyramid-jinja2==2.6.2,pyramid-layout==1.0,pyramid-mailer==0.15.1,pyramid-services==0.4,pyramid-tm==1.1.1,pytest==3.5.0,python-dateutil==2.5.3,python-editor==1.0.1,python-slugify==1.1.4,pytz==2016.6.1,raven==6.0.0,repoze.lru==0.6,repoze.sendmail==4.3,requests==2.13.0,requests-aws4auth==0.9,six==1.10.0,SQLAlchemy==1.1.4,statsd==3.2.1,text-unidecode==1.2,transaction==2.1.2,translationstring==1.3,Unidecode==0.4.19,urllib3==1.16,venusian==1.0,vine==1.1.4,waitress==1.1.0,webencodings==0.5.1,WebOb==1.6.1,WebTest==2.0.29,ws4py==0.4.2,wsaccel==0.6.2,zope.deprecation==4.1.2,zope.interface==4.3.2,zope.sqlalchemy==1.0
functional runtests: PYTHONHASHSEED='4065597142'
functional runtests: commands[0] | pytest tests/functional
============================= test session starts ==============================
platform linux2 -- Python 2.7.14, pytest-3.5.0, py-1.5.3, pluggy-0.6.0 -- /home/seanh/Projects/h/.tox/functional/bin/python2.7
cachedir: .pytest_cache
rootdir: /home/seanh/Projects/h, inifile: tox.ini
plugins: celery-4.1.0
collecting ... collected 33 items
run-last-failure: rerun previous 1 failure first
tests/functional/test_accounts.py::TestAccountSettings::test_submit_email_form_without_xhr_returns_full_html_page ERROR [ 3%]
==================================== ERRORS ====================================
ERROR at setup of TestAccountSettings.test_submit_email_form_without_xhr_returns_full_html_page
self = <tests.functional.test_accounts.TestAccountSettings object at 0x7f0f02af0f10>
app = <webtest.app.TestApp object at 0x7f0f0076a790>
user = <User: aguirreautumn__0>
@pytest.fixture
def app(self, app, user):
> res = app.get('/login')
app = <webtest.app.TestApp object at 0x7f0f0076a790>
self = <tests.functional.test_accounts.TestAccountSettings object at 0x7f0f02af0f10>
user = <User: aguirreautumn__0>
tests/functional/test_accounts.py:103:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/functional/local/lib/python2.7/site-packages/webtest/app.py:331: in get
expect_errors=expect_errors)
.tox/functional/local/lib/python2.7/site-packages/webtest/app.py:625: in do_request
res = req.get_response(app, catch_exc_info=True)
.tox/functional/local/lib/python2.7/site-packages/webob/request.py:1295: in send
application, catch_exc_info=True)
.tox/functional/local/lib/python2.7/site-packages/webob/request.py:1263: in call_application
app_iter = application(self.environ, start_response)
.tox/functional/local/lib/python2.7/site-packages/webtest/lint.py:200: in lint_app
iterator = application(environ, start_response_wrapper)
.tox/functional/local/lib/python2.7/site-packages/pyramid/router.py:237: in __call__
return response(request.environ, start_response)
.tox/functional/local/lib/python2.7/site-packages/webob/response.py:1035: in __call__
return self.conditional_response_app(environ, start_response)
.tox/functional/local/lib/python2.7/site-packages/webob/response.py:1117: in conditional_response_app
start_response(self.status, headerlist)
.tox/functional/local/lib/python2.7/site-packages/webtest/lint.py:190: in start_response_wrapper
check_headers(headers)
.tox/functional/local/lib/python2.7/site-packages/webtest/lint.py:441: in check_headers
"%r is not a valid latin1 string" % (name,)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
string = 'Referrer-Policy'
message = "Header names must be latin1 string (not Py2 unicode or Py3 bytes type). u'Referrer-Policy' is not a valid latin1 string"
def _assert_latin1_str(string, message):
> assert type(string) is str, message
E AssertionError: Header names must be latin1 string (not Py2 unicode or Py3 bytes type). u'Referrer-Policy' is not a valid latin1 string
message = "Header names must be latin1 string (not Py2 unicode or Py3 bytes type). u'Referrer-Policy' is not a valid latin1 string"
string = 'Referrer-Policy'
.tox/functional/local/lib/python2.7/site-packages/webtest/lint.py:418: AssertionError
------------------------------ Captured log setup ------------------------------
base.py 82 WARNING HEAD /hypothesis-test [status:404 request:0.001s]
config.py 123 WARNING No secret key provided: using transient key. Please configure the secret_key setting or the SECRET_KEY environment variable!
=========================== 1 error in 3.19 seconds ============================
ERROR: InvocationError for command '/home/seanh/Projects/h/.tox/functional/bin/pytest tests/functional' (exited with code 1)
___________________________________ summary ____________________________________
ERROR: functional: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment