Skip to content

Commit

Permalink
fix unit test (#155)
Browse files Browse the repository at this point in the history
* Cleanup code (robotframework#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
  • Loading branch information
HelioGuilherme66 committed Nov 14, 2024
1 parent 425ac8f commit d5af29d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions utest/application/test_app_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,19 @@ def test_replace_std_for_win(self):
robotide._replace_std_for_win()


class TestMisc(unittest.TestCase):

def tearDown(self):
builtins.__import__ = real_import

def test_get_code(self):
import wx
from robotide.application import RIDE

main_app = RIDE()
code = main_app._get_language_code()
assert code in (175, wx.LANGUAGE_ENGLISH_WORLD, wx.LANGUAGE_PORTUGUESE)


if __name__ == '__main__':
unittest.main()

0 comments on commit d5af29d

Please sign in to comment.