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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30632>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to