Skip to content

Conversation

gunnellEvan
Copy link
Contributor

@gunnellEvan gunnellEvan commented May 21, 2024

Change Summary

Added test coverage to CoreSchema pretty print utility function

Related issue number

#7656

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @dmontagu

@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label May 21, 2024
Copy link

codspeed-hq bot commented May 21, 2024

CodSpeed Performance Report

Merging #9469 will not alter performance

Comparing gunnellEvan:pretty_print_test_cov (bbd8bd2) with main (e67524c)

Summary

✅ 13 untouched benchmarks

@gunnellEvan
Copy link
Contributor Author

please review

Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

@gunnellEvan,

Looks great, thanks for the contribution! I'm guessing some of the linting tests might fail, but you should be able to run make format and make lint locally to fix those issues!

@pydantic-hooky pydantic-hooky bot added awaiting author revision awaiting changes from the PR author and removed ready for review labels May 21, 2024
@pydantic-hooky pydantic-hooky bot assigned gunnellEvan and unassigned dmontagu May 21, 2024
@gunnellEvan gunnellEvan requested a review from sydney-runkle May 21, 2024 14:23
@sydney-runkle
Copy link
Contributor

Hmph, looks like there are still some errors (tests failing). Once that's resolved, all looks good!

metadata={'schema_type': 'any', 'test_id': '42'},
serialization=core_schema.simple_ser_schema('bool'),
)
expected_meta_info = "{\n 'type': 'any',\n 'ref': 'meta_schema',\n 'metadata': {'schema_type': 'any', 'test_id': '42'},\n 'serialization': {'type': 'bool'}\n}\n"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe multiline strings could be used?

Copy link
Contributor

Choose a reason for hiding this comment

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

@Viicos, yep, I think we're just waiting on formatting changes, but otherwise looks good!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestions! I'll go through and get the tests passing in the workflow later today and then re-request review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes made and checks passed @sydney-runkle

Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

Awesome work, we're glad to have a test for this!

@sydney-runkle sydney-runkle merged commit f48d03e into pydantic:main May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting author revision awaiting changes from the PR author relnotes-fix Used for bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants