From 61d36e43fec9aeec2e93449b1e529dc060690374 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 28 May 2020 11:02:23 -0700 Subject: [PATCH] users: tests: functional: Leave no-language as final setting - Whenever functional tests for user app are run, the tester user is left with the last language that is tested. This is a minor inconvenience. Fix this by adding no-language option to test at the end. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/users/tests/test_functional.py | 2 ++ plinth/modules/users/tests/users.feature | 1 + 2 files changed, 3 insertions(+) diff --git a/plinth/modules/users/tests/test_functional.py b/plinth/modules/users/tests/test_functional.py index 02cfd78dc..fc642dbab 100644 --- a/plinth/modules/users/tests/test_functional.py +++ b/plinth/modules/users/tests/test_functional.py @@ -10,6 +10,7 @@ from plinth.tests import functional scenarios('users.feature') _language_codes = { + 'None': '', 'Deutsch': 'de', 'Nederlands': 'nl', 'Português': 'pt', @@ -26,6 +27,7 @@ _language_codes = { } _config_page_title_language_map = { + '': 'General Configuration', 'da': 'Generel Konfiguration', 'de': 'Allgemeine Konfiguration', 'es': 'Configuración general', diff --git a/plinth/modules/users/tests/users.feature b/plinth/modules/users/tests/users.feature index fcebebd10..ddb70ab14 100644 --- a/plinth/modules/users/tests/users.feature +++ b/plinth/modules/users/tests/users.feature @@ -51,3 +51,4 @@ Scenario Outline: Change language | తెలుగు | | Türkçe | | 简体中文 | + | None |