bpo-30917: IDLE: Add config.IdleConf unittest#2691
Conversation
|
@mlouielu, thanks for your PR! By analyzing the history of the files in this pull request, we identified @terryjreedy, @kbkaiser and @Yhg1s to be potential reviewers. |
Sorry, something went wrong.
|
@terryjreedy Could you provide the result of |
Sorry, something went wrong.
|
You were right. My machine and appveyor: FAIL: test_get_user_cfg_dir (main.IdleConfTest)
|
Sorry, something went wrong.
This reverts commit 9fc7670.
|
To be mention, I also got some failed on MacOS: |
Sorry, something went wrong.
terryjreedy
left a comment
There was a problem hiding this comment.
I will push the exact changes requested so far.
Sorry, something went wrong.
|
Since you pushed conflicting comments, I will edit the comments. to show what I did. |
Sorry, something went wrong.
terryjreedy
left a comment
There was a problem hiding this comment.
The part from where I left off looks pretty good.
Sorry, something went wrong.
|
@csabella would you like to help for reviewing this? |
Sorry, something went wrong.
csabella
left a comment
There was a problem hiding this comment.
You did a massive amount of work for this and it's overwhelming to look at. Very impressive. Overall I thought it looks great, but I'm new to unittests, so I think Terry's critical eye will be much more helpful.
I didn't see calls for GetKeyBinding or SaveUserCfgFiles. Since you already have a test for userCfg,Save(), then maybe that could be mocked and just tested that it gets called?
Sorry, something went wrong.
|
Thanks @csabella, your review helps a lot. I've addressed your point and update the commit. test of |
Sorry, something went wrong.
terryjreedy
left a comment
There was a problem hiding this comment.
As Cheryl said, this patch is more than enough to comfortably review. As it is, it is a big improvement, adding 50% to coverage.
I just pushed the two changes I consider essential: suppressing printed warnings (I had the one I made conditional on 'not idlelib.testing'); and updating coverage. All the other suggestions I consider optional for this patch. I plan to push it, with or without additional commits when I can get back to it tomorrow.
Sorry, something went wrong.
Patch by Louie Lu. (cherry picked from commit f776eb0)
After this merged, I would like to cleanup config source code.