[issue18409] Idle: test AutoComplete.py

Terry J. Reedy report at bugs.python.org
Wed Jun 4 02:59:51 CEST 2014


Terry J. Reedy added the comment:

The coverage of Phil's patch is about 60%. I decided to push it with slight modification so he is properly credited with what he did. Changes: 
Move mock AutoCompleteWindow to test file; too special.
Move ac_func to mock_idle for use in other tests; well done!
Redo Event mock. Assign needed attributes when create.
Make changes needed because of above two changes.
Add macosxSupport call now needed to run without raising.
Delete root when done.
Add abbreviation for self.autocomplete.open_completions, etc.
Improve the logic of a couple of subtests.

Any blank class could be used to mock event, but putting it in mock_tk allows for a docstring and does the update trick just once.

Saimadhav, open a new issue to work more on this test.

----------
nosy: +sahutd
resolution:  -> fixed
status: open -> closed
Added file: http://bugs.python.org/file35475/test_autocomplete-18409-2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18409>
_______________________________________


More information about the Python-bugs-list mailing list