Skip to content
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 additional tests to Component #935

Merged
merged 5 commits into from
Jan 28, 2019

Conversation

watsonjj
Copy link
Contributor

@watsonjj watsonjj commented Jan 25, 2019

Add some additional tests to Component.

Note test_change_default_subclass_override, which fails. Do we want a method to be able to change the default of a traitlet for all subclasses? Or should we accept this behaviour for the time being?

@dneise
Copy link
Member

dneise commented Jan 26, 2019

I think this behavior is exactly what one would expect, so it should stay as it is.

@watsonjj
Copy link
Contributor Author

Yes I agree. However, a developer may fall into this pitfall in the future.

This PR is to "document" some of the Component's current behaviours, via some verbose tests.

@watsonjj
Copy link
Contributor Author

Something seems to be wrong with pytables in the master

* master:
  fix pandas to 0.23.4 for the time being (cta-observatory#937)
  slimmed down some notebooks and removed poor-quality ones (cta-observatory#933)
  clean up environment.yml (cta-observatory#932)
  Print duration of notebooks on travis (cta-observatory#928)
@codecov
Copy link

codecov bot commented Jan 28, 2019

Codecov Report

Merging #935 into master will increase coverage by 0.26%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #935      +/-   ##
==========================================
+ Coverage   78.31%   78.57%   +0.26%     
==========================================
  Files         191      191              
  Lines       10735    10867     +132     
==========================================
+ Hits         8407     8539     +132     
  Misses       2328     2328
Impacted Files Coverage Δ
ctapipe/core/tests/test_component.py 99.37% <100%> (+2.82%) ⬆️

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 5d57cb1...4b80ae8. Read the comment docs.

@watsonjj watsonjj merged commit dfbacb8 into cta-observatory:master Jan 28, 2019
@watsonjj watsonjj deleted the component_tests branch January 28, 2019 14:42
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.

3 participants