mirror of
https://github.com/not-kennethreitz/flask-sslify.git
synced 2026-06-05 06:56:15 +00:00
Fix the broken testing in py3k.
This commit is contained in:
@@ -59,5 +59,5 @@ def test_hsts_header(app_factory):
|
||||
client = app_factory.app.test_client()
|
||||
r = client.get('/', base_url='https://example.com')
|
||||
assert r.status_code == 200
|
||||
assert r.data == 'home'
|
||||
assert r.data.decode('utf-8') == 'home'
|
||||
assert r.headers['Strict-Transport-Security'] == 'max-age=31536000'
|
||||
|
||||
@@ -35,5 +35,5 @@ def test_hsts_header(sslify):
|
||||
client = sslify.app.test_client()
|
||||
r = client.get('/', base_url='https://example.com')
|
||||
assert r.status_code == 200
|
||||
assert r.data == 'home'
|
||||
assert r.data.decode('utf-8') == 'home'
|
||||
assert r.headers['Strict-Transport-Security'] == 'max-age=31536000'
|
||||
|
||||
Reference in New Issue
Block a user