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

feat(tests): Improve pixano.core unit tests #67

Merged
merged 7 commits into from
Feb 1, 2024

Conversation

cpvannier
Copy link
Member

@cpvannier cpvannier commented Jan 31, 2024

Description

  • Fix DepthImage display method and existing unit tests
  • Add missing BBox unit tests
  • Add missing Image unit tests
  • Add is_binary unit test
  • Add Camera and GtInfo unit tests

Only missing unit tests in pixano.core now are:

  • Image.complete_uri: assertRaises does not count in code coverage for some reason
  • Image.open(): Missing test for S3 image, should be doable with getmoto/moto
  • pixano_type.py: Testing convert_field() and create_pyarrow_type() will require some work and deserves its own issue / PR

Warning

This PR also removes the deprecated pyarrow_array_from_list() function from pixano.core as it is no longer used anywhere.

@cpvannier cpvannier added enhancement New feature or request scope: tests Related to Pixano unit tests and storybooks labels Jan 31, 2024
@cpvannier cpvannier added this to the Pixano 0.5.0 milestone Jan 31, 2024
@cpvannier cpvannier self-assigned this Jan 31, 2024
@cpvannier cpvannier marked this pull request as ready for review January 31, 2024 14:50
@cpvannier cpvannier merged commit 6d55d6a into develop Feb 1, 2024
5 checks passed
@cpvannier cpvannier deleted the feat/core_unit_tests branch February 15, 2024 14:18
cpvannier added a commit that referenced this pull request Feb 15, 2024
* fix(back): Fix DepthImage display method and unit tests

* feat(tests): Add missing BBox unit tests

* feat(tests): Add Camera and GtInfo unit tests

* fix(back): Remove unused import

* feat(back)!: Remove deprecated pyarrow_array_from_list function

* feat(tests): Add missing test for is_binary

* feat(tests): Add missing Image unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope: tests Related to Pixano unit tests and storybooks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants