[issue21647] Idle unittests: make gui, mock switching easier.

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ _

[issue21647] Idle unittests: make gui, mock switching easier.

2015-09-18 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21647] Idle unittests: make gui, mock switching easier.

2014-06-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tests that need at most tkinter Variables and message boxes run without gui since those are easy to mock and we want to set and retrieve values on MBox. Tests of displayed widgets other than Text are gui tests (unless we were to developed a substantial tk mock

[issue21647] Idle unittests: make gui, mock switching easier.

2014-06-06 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Perhaps, we can move GUI/non GUI code into blocks. I will take Text as example. from test import support if support._is_gui_available(): from tkinter import Text else: from idlelib.idle_test.mock_tk import Text . . . if not support._is_gui_available()

[issue21647] Idle unittests: make gui, mock switching easier.

2014-06-02 Thread Terry J. Reedy
New submission from Terry J. Reedy: Idle unittests that use tkinter.Text are developed using the gui widget and then switched, to the current extent possible, to mock_tk.Text. I have done this previously by commenting out gui lines and adding new lines, so it would be possible to switch back i