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

Tests for DataCollection #307

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

psomhorst
Copy link
Contributor

@psomhorst psomhorst commented Oct 9, 2024

Tests for DataCollections were missing. Three issues with DataCollection or data loading were found and fixed in this PR.

The tests cover 95% of the code in datacollection.py. The select_by_time() method is not tested for DataCollection[IntervalData] because select_by_time() is not finalised for IntervalData. Created #306 to add this test when #198 is fixed.

The omission of these line essentially disabled overwrite protection
if the key was not explicitly given. As this is/was the default way to
add items to a collection, the overwrite protection was essentially
unused.
`obj in v.derived_from` uses equality (==) rather than identity (is).
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.

1 participant