Repository navigation
TST: Add coverage to statespace package - #2524
Conversation
There was a problem hiding this comment.
no docstrings for test functions, use # code comments.
The message when a test fails will use the docstring instead of the premade standard message.
|
@ChadFulton Make one of the tests fail and check the failure message. Otherwise, Can I just merge this? |
Thanks for reminding me. I'll change it.
If possible, I'd like to wait to add coverage also for mlemodel.py (which is at 78% right now). I'll be able to do that tomorrow. |
in Numpy < 1.8.
broken assert.
|
When this is green it should be good to merge. |
There was a problem hiding this comment.
this should not be a python assert in unit tests. Either use numpy's assert_equal (should be more informative in this case) or assert_ (trailing underline)
(Main traditional reason, python assert are removed when byte compiling python with -o flag.)
There was a problem hiding this comment.
also applies to many other case below
There was a problem hiding this comment.
assert_equal has the advantage that it shows the values of the comparison in a failure, while assert_ only shows the boolean
|
I only did a superficial skimming. Looks good, but the |
Thanks for the note, I cleaned out all the python |
|
no more assert, all green, merging Thanks @ChadFulton |
TST: Add coverage to statespace package
No description provided.