|
|
|
@ -47,6 +47,11 @@ def test_ddg_bang(client):
|
|
|
|
|
assert rv._status_code == 302
|
|
|
|
|
assert rv.headers.get('Location').startswith('https://github.com')
|
|
|
|
|
|
|
|
|
|
# Ensure bang without content doesn't redirect to the result
|
|
|
|
|
rv = client.get(f'/{Endpoint.search}?q=!gh')
|
|
|
|
|
assert rv._status_code == 302
|
|
|
|
|
assert not rv.headers.get('Location').startswith('https://github.com')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_config(client):
|
|
|
|
|
rv = client.post(f'/{Endpoint.config}', data=demo_config)
|
|
|
|
|