Add test for <op>! bang searches
This commit is contained in:
parent
1de7846aed
commit
0476a426aa
|
@ -36,6 +36,11 @@ def test_ddg_bang(client):
|
|||
assert rv._status_code == 302
|
||||
assert rv.headers.get('Location').startswith('https://www.reddit.com')
|
||||
|
||||
# Move '!' to end of the bang
|
||||
rv = client.get('/search?q=gitlab%20w!')
|
||||
assert rv._status_code == 302
|
||||
assert rv.headers.get('Location').startswith('https://en.wikipedia.org')
|
||||
|
||||
# Ensure bang is case insensitive
|
||||
rv = client.get('/search?q=!GH%20whoogle')
|
||||
assert rv._status_code == 302
|
||||
|
|
Loading…
Reference in New Issue
Block a user