-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add a GUI test for Enum.create_editor #988
Conversation
|
There is one known issue which this test case conveniently avoids. enthought/traitsui#781 |
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.
Thank you for looking into this and identify the traitsui issue. It is certainly worth doing this exercise.
Codecov Report
@@ Coverage Diff @@
## master #988 +/- ##
==========================================
+ Coverage 73.05% 74.77% +1.71%
==========================================
Files 51 51
Lines 6514 6457 -57
Branches 1309 1279 -30
==========================================
+ Hits 4759 4828 +69
+ Misses 1363 1258 -105
+ Partials 392 371 -21
Continue to review full report at Codecov.
|
I am not sure if this is ready for review again...
|
Oh, I thought that we were going to keep it the way it is, but I came up with the current code after watching a lunch and learn by Corran and don't have much experience testing GUIs that use traits. Should I change it to the test you suggested ? |
The situation is a bit unique here for traits, because supposedly traits should not depend on traitsui, so we'd want a more lightweight tests. For applications using traits and traitsui, it would make sense to have some integration tests that exercises GUI logic. |
@kitchoi Yes, I think that's all we need; just enough to exercise the code in the |
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.
LGTM!
Related to #965
Adds a GUI test for the
create_editor
method for theEnum
trait.Checklist
- [ ] Update API reference (docs/source/traits_api_reference
)- [ ] Update User manual (docs/source/traits_user_manual
)- [ ] Update type annotation hints intraits-stubs