Skip to content

Commit e1edf96

Browse files
committed
Update SeleniumBase Commander
1 parent d640bda commit e1edf96

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

seleniumbase/console_scripts/sb_commander.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,17 +276,21 @@ def create_tkinter_gui(tests, command_string, files, solo_tests):
276276
chk.pack()
277277

278278
tk.Label(root, text="").pack()
279-
plural = "s"
280-
if len(files) == 1:
281-
plural = ""
282279
run_display = (
283-
"Select from %s rows (%s file%s with %s tests): "
280+
"Select from %s rows (%s files with %s tests): "
284281
"(All tests will run if none are selected)"
285-
% (len(tests), len(files), plural, len(solo_tests))
282+
% (len(tests), len(files), len(solo_tests))
286283
)
287284
if len(solo_tests) == 1:
288285
run_display = "Only ONE TEST was found and will be run:"
289286
tests = solo_tests
287+
elif len(files) == 1:
288+
run_display = (
289+
"Select from %s tests: "
290+
"(All tests will run if none are selected)"
291+
% (len(solo_tests))
292+
)
293+
tests = solo_tests
290294
tk.Label(root, text=run_display, fg="blue").pack()
291295
text_area = ScrolledText(
292296
root, width=100, height=12, wrap="word", state=tk.DISABLED

0 commit comments

Comments
 (0)