Skip to content

Require wx CI job to pass#459

Merged
kitchoi merged 4 commits into
masterfrom
require-wx-to-pass
Dec 2, 2020
Merged

Require wx CI job to pass#459
kitchoi merged 4 commits into
masterfrom
require-wx-to-pass

Conversation

@kitchoi

@kitchoi kitchoi commented Dec 2, 2020

Copy link
Copy Markdown
Contributor

This PR fixes the few test errors for the wx test suite and change the CI configuration such that wx is required to pass.

I did not fix #458, I merely turned the assertion into an "expected failure" (but without using unittest's expectedFailure, which allows unexpected errors to pass and should not be used on anything that might last for any prolonged period of time).


# create and mock a mouse wheel event
wx_event = wx.MouseEvent(mouseType=wx.wxEVT_MOUSEWHEEL)
wx_event = wx.MouseEvent(wx.wxEVT_MOUSEWHEEL)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The argument name was changed to mouseEventType. I could use named argument here too.

@codecov-io

codecov-io commented Dec 2, 2020

Copy link
Copy Markdown

Codecov Report

Merging #459 (1fdb186) into master (55fc728) will increase coverage by 1.37%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #459      +/-   ##
==========================================
+ Coverage   28.96%   30.33%   +1.37%     
==========================================
  Files         206      206              
  Lines       18245    18245              
  Branches     2466     2466              
==========================================
+ Hits         5284     5534     +250     
+ Misses      12634    12371     -263     
- Partials      327      340      +13     
Impacted Files Coverage Δ
enable/wx/base_window.py 40.46% <ø> (+40.46%) ⬆️
enable/component.py 55.76% <0.00%> (+0.61%) ⬆️
enable/component_editor.py 83.33% <0.00%> (+4.16%) ⬆️
enable/tools/hover_tool.py 77.61% <0.00%> (+4.47%) ⬆️
kiva/trait_defs/kiva_font_trait.py 82.81% <0.00%> (+6.25%) ⬆️
enable/savage/svg/backends/wx/__init__.py 33.33% <0.00%> (+12.12%) ⬆️
enable/colors.py 43.47% <0.00%> (+18.47%) ⬆️
enable/wx/image.py 28.94% <0.00%> (+28.94%) ⬆️
enable/wx/scrollbar.py 33.87% <0.00%> (+33.87%) ⬆️
kiva/trait_defs/ui/wx/kiva_font_editor.py 37.50% <0.00%> (+37.50%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55fc728...1fdb186. Read the comment docs.

@jwiggins jwiggins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

It looks like the Wx/Qt discrepancy w.r.t. mouse wheel deltas is covered by #458, so that can be ignored here.

@kitchoi kitchoi merged commit 4db18d2 into master Dec 2, 2020
@kitchoi kitchoi deleted the require-wx-to-pass branch December 2, 2020 18:02
@kitchoi

kitchoi commented Dec 14, 2020

Copy link
Copy Markdown
Contributor Author

I forgot about the wx job on Appveyor :(

enable/appveyor.yml

Lines 16 to 19 in 77cb194

matrix:
allow_failures:
- RUNTIME: '3.6'
TOOLKITS: "wx"

And the job is failing, I will open an issue.

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