searx: Improve functional tests

- Make tests more semantically correct
- Add implementation for missing fixture - When I log out
- Check whether file exists when disabling public access

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2019-06-09 10:40:54 -04:00
1 parent 7e1e5182cc
commit 23e4aac400
4 files changed
+17 -9

No files matched your search

@@ -29,12 +29,14 @@ def logged_in_user(browser):
config['DEFAULT']['password'])
@when("I log out")
@given("I'm a logged out user")
def logged_out_user(browser):
browser.visit(default_url + '/plinth/accounts/logout/')
log_out = when("I log out")(logged_out_user)
@then(parsers.parse('I should be prompted for login'))
def prompted_for_login(browser):
assert interface.is_login_prompt(browser)