diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b39ae9d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,14 @@ +{ + "editor.formatOnPaste": false, + "editor.formatOnSave": false, + "[python]": { + "editor.codeActionsOnSave": { + "source.organizeImports": false, + }, + }, + "editor.rulers": [ + 79, + 88, + 120 + ], +} \ No newline at end of file diff --git a/run b/run index 0a2ed37..efbd01f 100755 --- a/run +++ b/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 diff --git a/test/test_routes.py b/test/test_routes.py index 94fcfef..8cb79fa 100644 --- a/test/test_routes.py +++ b/test/test_routes.py @@ -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