Skip to content

bpo-30993: IDLE - Improve configdialog font page and tests. #2818

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

Merged
merged 3 commits into from
Jul 23, 2017

Conversation

terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Jul 22, 2017

@mention-bot
Copy link

@terryjreedy, thanks for your PR! By analyzing the history of the files in this pull request, we identified @csabella, @kbkaiser and @zooba to be potential reviewers.

@terryjreedy
Copy link
Member Author

screwed up, will try again

* Document causal pathways in docstring.
* Simplify some attribute names.
* Rename test_bold_toggle_set_samples to make test_font_set fail.
* Fix test_font_set so not order dependent.
* Fix renamed test_indent_scale so it tests the widget.
@terryjreedy terryjreedy reopened this Jul 22, 2017
@terryjreedy terryjreedy changed the title Fontchange bpo-30993: IDLE - Improve configdialog font page and tests. Jul 22, 2017
d = dialog
d.font_name.set('Test Font')
d.font_size.set(default_size)
d.font_bold.set(default_bold)
Copy link
Contributor

@csabella csabella Jul 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering - if you add a similar test as bold_toggle for the sizelist selection, maybe the initialization of the 3 Tk variables should be in setUp()? That would mean that all the tests start with the same values (presumably from GetFont), but the bold_toggle test is a lot different than that now. font_size 5 in that test isn't even on the menu for size, so it would be an invalid value there.

@terryjreedy terryjreedy self-assigned this Jul 23, 2017
@terryjreedy terryjreedy merged commit 07ba305 into python:master Jul 23, 2017
@terryjreedy terryjreedy deleted the fontchange branch July 23, 2017 16:20
terryjreedy added a commit to terryjreedy/cpython that referenced this pull request Jul 23, 2017
…thonGH-2818)

* Document causal event pathways in docstring.
* Simplify some attribute names.
* Rename test_bold_toggle_set_samples to make test_font_set fail.
* Fix test_font_set so not order dependent.
* Fix renamed test_indent_scale so it tests the widget.
(cherry picked from commit 07ba305)
terryjreedy added a commit that referenced this pull request Jul 23, 2017
…-2818) (#2826)

* Document causal event pathways in docstring.
* Simplify some attribute names.
* Rename test_bold_toggle_set_samples to make test_font_set fail.
* Fix test_font_set so not order dependent.
* Fix renamed test_indent_scale so it tests the widget.
(cherry picked from commit 07ba305)
@terryjreedy terryjreedy restored the fontchange branch July 23, 2017 20:21
@terryjreedy terryjreedy deleted the fontchange branch July 23, 2017 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants