Skip to content
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

IDLE: Add tests for configdialog highlight tab #75184

Closed
terryjreedy opened this issue Jul 24, 2017 · 7 comments
Closed

IDLE: Add tests for configdialog highlight tab #75184

terryjreedy opened this issue Jul 24, 2017 · 7 comments
Assignees
Labels
3.7 (EOL) end of life topic-IDLE type-feature A feature request or enhancement

Comments

@terryjreedy
Copy link
Member

BPO 31001
Nosy @terryjreedy, @csabella
PRs
  • bpo-31060: IDLE: Finish regrouping ConfigDialog methods #2908
  • bpo-31001: IDLE: Add tests for configdialog highlight tab #3123
  • [3.6] bpo-31001: IDLE: Add tests for configdialog highlight tab (GH-3… #3124
  • Dependencies
  • bpo-31205: IDLE, configdialog: Factor out KeysPage class from ConfigDialog
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/terryjreedy'
    closed_at = <Date 2017-08-18.01:03:13.313>
    created_at = <Date 2017-07-24.07:22:14.860>
    labels = ['expert-IDLE', 'type-feature', '3.7']
    title = 'IDLE: Add tests for configdialog highlight tab'
    updated_at = <Date 2017-08-18.01:03:29.306>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2017-08-18.01:03:29.306>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2017-08-18.01:03:13.313>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2017-07-24.07:22:14.860>
    creator = 'terry.reedy'
    dependencies = ['31205']
    files = []
    hgrepos = []
    issue_num = 31001
    keywords = []
    message_count = 7.0
    messages = ['299596', '300276', '300351', '300463', '300464', '300466', '300467']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'cheryl.sabella']
    pr_nums = ['2908', '3123', '3124']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue31001'
    versions = ['Python 3.6', 'Python 3.7']

    @terryjreedy terryjreedy added the 3.7 (EOL) end of life label Jul 24, 2017
    @terryjreedy terryjreedy self-assigned this Jul 24, 2017
    @terryjreedy terryjreedy added topic-IDLE type-feature A feature request or enhancement labels Jul 24, 2017
    @terryjreedy
    Copy link
    Member Author

    Pr2908 originally just sorted highlight methods together, but was extended to sort all methods together and relabeled for bpo-31060. (This actually simplified the diff.) Pr2925, the 3.6 backport, appears on the replacement issue.

    @terryjreedy
    Copy link
    Member Author

    If we do the same renamings for the theme selection vars and functions as done for keys selection on the keys tab, then the corresponding tests can be copied and slightly altered. However, duplicate names require that KeyPage be separated first. Hence the dependency.

    When the current mess is replaced on both pages, we *might* be able to make a simple Frame subclass tested once and used on both pages.

    @csabella
    Copy link
    Contributor

    Working on this now.

    @terryjreedy
    Copy link
    Member Author

    Coverage now 95%. We are getting close. Still not covered in highlight group:

    create_page_highlight: # Highlight only.
    text.bind('<Double-Button-1>', lambda e: 'break')
    text.bind('<B1-Motion>', lambda e: 'break')
    Callbacks are never called. I presume that these mask something. I am not sure that they are needed.

    save_new: # Same as for keys.
    if not idleConf.userCfg['highlight'].has_section(theme_name):
    Never false.

    delete_custom: # Same as for keys.
    if not item_list:
    self.custom_theme_on['state'] = DISABLED
    self.customlist.SetMenu(item_list, '- no custom themes -')
    else:
    self.customlist.SetMenu(item_list, item_list[0])
    Condition never false, else never executed.

    @terryjreedy
    Copy link
    Member Author

    New changeset 82aff62 by Terry Jan Reedy (Cheryl Sabella) in branch 'master':
    bpo-31001: IDLE: Add tests for configdialog highlight tab (bpo-3123)
    82aff62

    @terryjreedy
    Copy link
    Member Author

    New changeset 6db2edb by Terry Jan Reedy in branch '3.6':
    [3.6] bpo-31001: IDLE: Add tests for configdialog highlight tab (GH-3123) (bpo-3124)
    6db2edb

    @terryjreedy
    Copy link
    Member Author

    Another big thank you.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life topic-IDLE type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants