Add a GUI test for Enum.create_editor#988
Conversation
|
|
|
There is one known issue which this test case conveniently avoids. enthought/traitsui#781 |
kitchoi
left a comment
There was a problem hiding this comment.
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 |
Related to #965
Adds a GUI test for the
create_editormethod for theEnumtrait.Checklist
- [ ] Update API reference (docs/source/traits_api_reference)- [ ] Update User manual (docs/source/traits_user_manual)- [ ] Update type annotation hints intraits-stubs