summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/htest.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-07-08 04:22:50 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-07-08 04:22:50 (GMT)
commit8b22c0aada7ef9fdf6226ee07bd95b4916e5bbb1 (patch)
tree34c1ec8489a871881a08cbabf690de37e7d6e945 /Lib/idlelib/idle_test/htest.py
parentd6402a40d3b52aa945dfc0a875b05510e88a2dab (diff)
downloadcpython-8b22c0aada7ef9fdf6226ee07bd95b4916e5bbb1.zip
cpython-8b22c0aada7ef9fdf6226ee07bd95b4916e5bbb1.tar.gz
cpython-8b22c0aada7ef9fdf6226ee07bd95b4916e5bbb1.tar.bz2
Issue #27380: IDLE: add query.HelpSource class and tests.
Remove modules that are combined in new module.
Diffstat (limited to 'Lib/idlelib/idle_test/htest.py')
-rw-r--r--Lib/idlelib/idle_test/htest.py30
1 files changed, 17 insertions, 13 deletions
diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py
index 71302d0..f5311e9 100644
--- a/Lib/idlelib/idle_test/htest.py
+++ b/Lib/idlelib/idle_test/htest.py
@@ -137,18 +137,6 @@ _editor_window_spec = {
"Best to close editor first."
}
-GetHelpSourceDialog_spec = {
- 'file': 'config_help',
- 'kwds': {'title': 'Get helpsource',
- '_htest': True},
- 'msg': "Enter menu item name and help file path\n "
- "<nothing> and more than 30 chars are invalid menu item names.\n"
- "<nothing>, file does not exist are invalid path items.\n"
- "Test for incomplete web address for help file path.\n"
- "A valid entry will be printed to shell with [0k].\n"
- "[Cancel] will print None to shell",
- }
-
# Update once issue21519 is resolved.
GetKeysDialog_spec = {
'file': 'config_key',
@@ -175,6 +163,22 @@ _grep_dialog_spec = {
"should open that file \nin a new EditorWindow."
}
+HelpSource_spec = {
+ 'file': 'query',
+ 'kwds': {'title': 'Help name and source',
+ 'menuitem': 'test',
+ 'filepath': __file__,
+ 'used_names': {'abc'},
+ '_htest': True},
+ 'msg': "Enter menu item name and help file path\n"
+ "'', > than 30 chars, and 'abc' are invalid menu item names.\n"
+ "'' and file does not exist are invalid path items.\n"
+ "Any url ('www...', 'http...') is accepted.\n"
+ "Test Browse with and without path, as cannot unittest.\n"
+ "A valid entry will be printed to shell with [0k]\n"
+ "or <return>. [Cancel] will print None to shell"
+ }
+
_io_binding_spec = {
'file': 'iomenu',
'kwds': {},
@@ -241,7 +245,7 @@ Query_spec = {
'_htest': True},
'msg': "Enter with <Return> or [Ok]. Print valid entry to Shell\n"
"Blank line, after stripping, is ignored\n"
- "Close dialog with valid entry, [Cancel] or [X]",
+ "Close dialog with valid entry, [Cancel] or [X]"
}