-
Notifications
You must be signed in to change notification settings - Fork 272
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
Fix tests for Tools, fixes #1214 #1027
Conversation
So first I make sure the test fails. |
Codecov Report
@@ Coverage Diff @@
## master #1027 +/- ##
==========================================
+ Coverage 87.00% 87.04% +0.04%
==========================================
Files 192 192
Lines 12185 12192 +7
==========================================
+ Hits 10601 10612 +11
+ Misses 1584 1580 -4
Continue to review full report at Codecov.
|
probably should rename this PR to show that it fixes all tools! |
Can we also test |
I have created #1034 to test for the help message of tools |
this is mostly ready to merge, but there are a few minor conflicts |
From the travis log, it seems traitlets applications have an exit method that raises sys.exit which is called by default. |
3a25998
to
43fbbd4
Compare
Ok, now I am satisfied with this.
|
@kosack codacy complains that I use asserts in unit tests, do we really want to continue using that? |
It has a lot of annoying things like that, but it is quite configurable. I just didn't find a good way to ignore unit tests. Basically it just runs prospector and pyflakes. We used to use another system, but it had even worse problems. Until CTAO provides one, let's just stick with it and try to update it's configuration. https://support.codacy.com/hc/en-us/articles/115002130625-Codacy-Configuration-File Would be nice to disable only some warnings in tests, however, not all checks. Though given this: fossasia/query-server#332 it seems they will not fix it. Perhaps there is a better system out there. |
@maxnoe Do you have a moment to fix the conflicts, so we can push to get this merged? |
Ahyes, sorry I thought this was already merged |
Fixes #1025