functional_tests: Fix step definition "When I log out"

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalpati 2019-08-16 23:15:20 +05:30 committed by Sunil Mohan Adapa
parent fe02b9f1e3
commit cd54cd48b8
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -34,7 +34,9 @@ def logged_out_user(browser):
browser.visit(default_url + '/plinth/accounts/logout/')
log_out = when("I log out")(logged_out_user)
@when("I log out")
def log_out_user(browser):
browser.visit(default_url + '/plinth/accounts/logout/')
@then(parsers.parse('I should be prompted for login'))