From bb2e48c816516076bebe010f9a579387f23078bf Mon Sep 17 00:00:00 2001 From: Samokhin Anatolii Date: Mon, 11 Feb 2019 14:35:33 +0700 Subject: [PATCH] Fix use system locale dependence button identifier in functional test --- test/test_fresh_start.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/test_fresh_start.py b/test/test_fresh_start.py index 936bc73..6b2a3d6 100644 --- a/test/test_fresh_start.py +++ b/test/test_fresh_start.py @@ -4,7 +4,6 @@ from pywinauto.application import Application import os import glob -import locale sample_fest_path = r"..\..\test\data\sample.fest" items_number = 3 @@ -36,10 +35,7 @@ def test_load_session(self): settings.Load.click() time.sleep(1) - if locale.getdefaultlocale()[0] == 'ru_RU': - app['Restart Required'].НетButton.click() - else: - app['Restart Required'].NoButton.click() + app['Restart Required'].Button2.click() time.sleep(0.5) app.wxWindowNR.menu_select("Main -> Exit")