Skip to content

Commit d5af29d

Browse files
fix unit test (#155)
* Cleanup code (#2905) * clean duplicates * clean duplicates * clean duplicates * clean duplicates * rename function * Refactor TextEdit, WIP * Fix unit tests with language transform * Fix insecure save of tmp file * Set Sonar for banches, update version * Set Sonar for banches, update version * Set Sonar for branches, update version * Separated key commands in TextEdit. Breaks some, TAB functions, Enter.. * Improve keys calls in TextEditor * Improve key use in TextEditor on Windows * Increase utest in TextEditor * Add requests to setup.py * First develop version * Cleanup code (#154) * Refactor TextEdit, WIP * Fix unit tests with language transform * Separated key commands in TextEdit. Breaks some, TAB functions, Enter.. * Delete commented code, renamve arguments * Refactor change_locale * Increase unit tests
1 parent 425ac8f commit d5af29d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

utest/application/test_app_main.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,19 @@ def test_replace_std_for_win(self):
230230
robotide._replace_std_for_win()
231231

232232

233+
class TestMisc(unittest.TestCase):
234+
235+
def tearDown(self):
236+
builtins.__import__ = real_import
237+
238+
def test_get_code(self):
239+
import wx
240+
from robotide.application import RIDE
241+
242+
main_app = RIDE()
243+
code = main_app._get_language_code()
244+
assert code in (175, wx.LANGUAGE_ENGLISH_WORLD, wx.LANGUAGE_PORTUGUESE)
245+
246+
233247
if __name__ == '__main__':
234248
unittest.main()

0 commit comments

Comments
 (0)