Fix issues with tests

This commit is contained in:
Jay Kamat 2019-02-01 23:03:44 -08:00
parent 1c7178c92c
commit a343f9df28
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5
2 changed files with 5 additions and 7 deletions

View File

@ -330,17 +330,17 @@ Feature: Various utility commands.
Scenario: DNT header
When I set content.headers.do_not_track to true
And I open headers
Then the header DNT should be set to 1
Then the header Dnt should be set to 1
Scenario: DNT header (off)
When I set content.headers.do_not_track to false
And I open headers
Then the header DNT should be set to 0
Then the header Dnt should be set to 0
Scenario: DNT header (unset)
When I set content.headers.do_not_track to <empty>
And I open headers
Then the header DNT should be set to <unset>
Then the header Dnt should be set to <unset>
Scenario: Accept-Language header
When I set content.headers.accept_language to en,de

View File

@ -30,11 +30,9 @@ from qutebrowser.browser import shared
(False, None, {}, {b'DNT': b'0'}),
(None, None, {}, {}),
# Accept-Language
(False, 'de, en', {}, {b'DNT': b'0',
b'Accept-Language': b'de, en'}),
(False, 'de, en', {}, {b'DNT': b'0', b'Accept-Language': b'de, en'}),
# Custom headers
(False, None, {'X-Qute': 'yes'}, {b'DNT': b'0',
b'X-Qute': b'yes'}),
(False, None, {'X-Qute': 'yes'}, {b'DNT': b'0', b'X-Qute': b'yes'}),
# Mixed
(False, 'de, en', {'X-Qute': 'yes'}, {b'DNT': b'0',
b'Accept-Language': b'de, en',