Skip to content

Conversation

gpeacock
Copy link
Contributor

@gpeacock gpeacock commented Oct 9, 2024

Renames unit_tests so it will run with pytest.

Renames unit_tests so it will run with pytest.
@gpeacock gpeacock requested a review from tmathern October 9, 2024 00:17
@gpeacock gpeacock merged commit 992e133 into main Oct 9, 2024
11 checks passed
@gpeacock gpeacock deleted the gpeacock/fix_unit_tests branch October 9, 2024 03:36
super().__init__()
if manifest_data is not None:
self.from_manifest_data_and_stream(format, manifest_data, stream)
self.from_manifest_data_and_stream(manifest_data, format, stream)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the stream here also be wrapped in a C2paStream?

Copy link
Contributor

@barnjamin barnjamin Oct 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The unit test modified in this PR will fail with a hash mismatch if validation_status is checked:

self.assertNotIn("validation_status", reader.json())

Wrapping the stream arg before calling init makes the test pass but it seems like it should be done in the Reader init
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed a PR for this so it didn't get lost

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.

3 participants