[issue30632] IDLE: add unittests to test_autocomplete

Terry J. Reedy report at bugs.python.org
Wed Jun 14 15:40:17 EDT 2017


Terry J. Reedy added the comment:

Ping.  Please answer question about two PRs.

For #30666, I wrote
1. Test_autocomplete.AutoCompleteTest has a test_method for each method of autocomplete.AutoComplete.  The last 5 test methods are empty ('pass'). Finish them.  A couple of the methods might be usefully split into smaller methods.  Get_entity is actually a function, as 'self' is ignored. After the first else, fetch_completions is also independent of 'self'.  PR 2011 combines the two blocks into a function that can be moved to run.py.

These method tests should be supplemented by user action tests with live widgets and simulated key events.  Such tests would be black box tests in that they should be independent of the implementation.

I decided to broaden this issue to all autocomplete tests and narrow that one to autocomplete_w tests.

----------
title: IDLE: add unittest to test_autocomplete -> IDLE: add unittests to test_autocomplete

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


More information about the Python-bugs-list mailing list