From cd54cd48b8f0288f6b94e2f091e3cb90b9ed4e58 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalpati Date: Fri, 16 Aug 2019 23:15:20 +0530 Subject: [PATCH] functional_tests: Fix step definition "When I log out" Signed-off-by: Joseph Nuthalapati Reviewed-by: Sunil Mohan Adapa --- functional_tests/step_definitions/interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functional_tests/step_definitions/interface.py b/functional_tests/step_definitions/interface.py index b049e5535..916e07532 100644 --- a/functional_tests/step_definitions/interface.py +++ b/functional_tests/step_definitions/interface.py @@ -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'))