remove test with ! after bang

pull/851/head
Joao Ramos 2 years ago
parent 5b800c57dc
commit fdbddda16c

@ -0,0 +1,14 @@
{
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": false,
},
},
"editor.rulers": [
79,
88,
120
],
}

6
run

@ -29,8 +29,12 @@ else
python3 -um app \
--unix-socket "$UNIX_SOCKET"
else
# export WHOOGLE_CONFIG_PREFERENCES_KEY='glkadghfjksghadfjk'
export WHOOGLE_CONFIG_COOKIES_DISABLED=false
# export WHOOGLE_DOTENV=1
python3 -um app \
--host "${ADDRESS:-0.0.0.0}" \
--port "${PORT:-"${EXPOSE_PORT:-5000}"}"
--port "${PORT:-"${EXPOSE_PORT:-5000}"}" \
--debug
fi
fi

@ -37,11 +37,6 @@ 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(f'/{Endpoint.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(f'/{Endpoint.search}?q=!GH%20whoogle')
assert rv._status_code == 302

Loading…
Cancel
Save