-
Notifications
You must be signed in to change notification settings - Fork 84
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 mock neurodata objects #1454
Conversation
I'm happy with the flexibility of this approach. I think this could help minimize a l of testing code across several repos, including PyNWB, NWB Widgets, and NWB Inspector. Questions:
|
* add mock ophys types * use new mock types in ophys unit tests
add behavior
* correct SpikeEventSeries timestamps * move all mock tests do a dedicated testing file
# Conflicts: # tests/unit/test_ecephys.py # tests/unit/test_ophys.py
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
Co-authored-by: Oliver Ruebel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bendichter could you add a docstring at least at the top of each module (py-file) to describe what the module contains and how to use it. It would be nice to also have docstrings for each of the functions, but I think in this particular case that is less critical as the functions are more-or-less self-describing once you know what the purpose of a mock_X
function is.
Otherwise this looks good to me. Thanks for putting this together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the Changelog. Otherwise this looks good to me.
Motivation
fix #1452
I tried fixtures first but it was very difficult to get them to play nice with unitTests.