Fix blank lines
This commit is contained in:
parent
0ce94dae1c
commit
455f6b8a70
@ -277,8 +277,8 @@ class TestFuzzyUrl:
|
||||
def test_special_urls(url, special):
|
||||
assert urlutils.is_special_url(QUrl(url)) == special
|
||||
|
||||
@pytest.mark.parametrize('open_base_url', [True, False])
|
||||
|
||||
@pytest.mark.parametrize('open_base_url', [True, False])
|
||||
@pytest.mark.parametrize('url, host, query', [
|
||||
('testfoo', 'www.example.com', 'q=testfoo'),
|
||||
('test testfoo', 'www.qutebrowser.org', 'q=testfoo'),
|
||||
@ -311,7 +311,6 @@ def test_get_search_url(config_stub, url, host, query, open_base_url):
|
||||
('test', 'www.qutebrowser.org', ''),
|
||||
('test-with-dash', 'www.example.org', ''),
|
||||
])
|
||||
|
||||
def test_get_search_url_open_base_url(config_stub, url, host, query):
|
||||
"""Test _get_search_url() with url.open_base_url_enabled.
|
||||
|
||||
@ -322,6 +321,7 @@ def test_get_search_url_open_base_url(config_stub, url, host, query):
|
||||
"""
|
||||
test_get_search_url(config_stub, url, host, query, True)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('url', ['\n', ' ', '\n '])
|
||||
def test_get_search_url_invalid(url):
|
||||
with pytest.raises(ValueError):
|
||||
|
Loading…
Reference in New Issue
Block a user