Skip to content

Compare test data's content generally #379

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

Closed
wants to merge 1 commit into from
Closed

Compare test data's content generally #379

wants to merge 1 commit into from

Conversation

jakirkham
Copy link
Member

@jakirkham jakirkham commented Jan 4, 2019

Instead of strictly expecting values returned from a store to be bytes instances only in the tests, relax this to anything that supports the buffer protocol and has the expected content. This makes it possible to return things like NumPy memmap objects and still have the tests work correctly.

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/tutorial.rst
  • Changes documented in docs/release.rst
  • Docs build locally (e.g., run tox -e docs)
  • AppVeyor and Travis CI passes
  • Test coverage is 100% (Coveralls passes)

@jakirkham
Copy link
Member Author

Thoughts @zarr-developers/core-devs?

Instead of strictly expecting values returned from a store to be `bytes`
instances only in the tests, relax this to anything that supports the
buffer protocol and has the expected content. This makes it possible to
return things like NumPy `memmap` objects and still have the tests work
correctly.
@jakirkham
Copy link
Member Author

Consolidating back into PR ( #377 ).

@jakirkham jakirkham closed this Jan 16, 2019
@jakirkham jakirkham deleted the cmp_data_content branch January 16, 2019 02:11
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