You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've attached my work so far in order to get feedback before I head too far in the wrong direction. I'm not sure if my addition of mock events and AutoCompleteWindow is the right way to go and I'm open to any guidance.
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.
Activity
philwebster commentedon Jul 9, 2013
I've started writing this test which depends on bpo-18365.
philwebster commentedon Aug 27, 2013
I've attached my work so far in order to get feedback before I head too far in the wrong direction. I'm not sure if my addition of mock events and AutoCompleteWindow is the right way to go and I'm open to any guidance.
[-]IDLE Improvements: Unit test for AutoComplete.py[/-][+]Idle: test AutoComplete.py[/+]python-dev commentedon Jun 4, 2014
New changeset 4f1abf87df12 by Terry Jan Reedy in branch '2.7':
Issue bpo-18409: Idle: add unittest for AutoComplete. Patch by Phil Webster.
http://hg.python.org/cpython/rev/4f1abf87df12
New changeset bf8710cf896b by Terry Jan Reedy in branch '3.4':
Issue bpo-18409: Idle: add unittest for AutoComplete. Patch by Phil Webster.
http://hg.python.org/cpython/rev/bf8710cf896b
terryjreedy commentedon Jun 4, 2014
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.