-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-30780: Add IDLE configdialog tests #3592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I removed the " needs backport to 3.6" label, the 3.6 branch no longer accept bugfixes (only security fixes are accepted): https://devguide.python.org/#status-of-python-branches |
…g and add tests for buttons.
I fixed the overt conflicts with the web editor. I fixed the failure on my local branch. I forgot that patch can only be used to temporarily replace existing attribute, not temporarily add new attribute. I intend to add context manager to idle_test.mock_idle for the latter, so we don't have to explicitly delete when instance is persistent across tests, as dialog is. I am now reviewing other tests and will add blurb and NEWS.txt items and update coverage when ready to commit. |
and deleted unneeded keys test code. This does opposite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still need to look at the new test_delete_custom_theme/keys code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will merge when CI passes again.
theme_name2 = 'other theme' | ||
idleConf.userCfg['highlight'].SetOption(theme_name2, 'name', 'value') | ||
highpage[theme_name2] = {'option': 'False'} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the corresponding additions for keys cover the failure of if not item_list
and the else
clause. I suspect it could be done in fewer lines, but I hope to someday factor out the common code, simpfiy the UI, and redo the tests anyway. So leave the additions alone.
@terryjreedy: Please replace |
Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
I'm having trouble backporting to |
Expose dialog buttons to test code and complete their test coverage. Complete test coverage for highlights and keys tabs. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit dd023ad) Co-authored-by: Cheryl Sabella <[email protected]>
GH-18218 is a backport of this pull request to the 3.7 branch. |
Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
GH-18219 is a backport of this pull request to the 3.8 branch. |
Expose dialog buttons to test code and complete their test coverage. Complete test coverage for highlights and keys tabs. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit dd023ad) Co-authored-by: Cheryl Sabella <[email protected]>
Expose dialog buttons to test code and complete their test coverage. Complete test coverage for highlights and keys tabs. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit dd023ad) Co-authored-by: Cheryl Sabella <[email protected]>
Expose dialog buttons to test code and complete their test coverage. Complete test coverage for highlights and keys tabs. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit dd023ad) Co-authored-by: Cheryl Sabella <[email protected]>
Terry, thanks for merging this! 🙂 |
Expose dialog buttons to test code and complete their test coverage. Complete test coverage for highlights and keys tabs. Co-authored-by: Terry Jan Reedy <[email protected]>
Expose dialog buttons to test code. Complete coverage for highlight and keys tabs
and for buttons and their functions.
https://bugs.python.org/issue30780