mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
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)
|
||||
|
||||
Reference in new issue
Block a user