Skip to content

Commit

Permalink
Fix use system locale dependence button identifier in functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
SAMOXA committed Feb 11, 2019
1 parent d2ff1a3 commit bb2e48c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/test_fresh_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit bb2e48c

Please sign in to comment.