Skip to content

Conversation

dmontagu
Copy link
Contributor

There was a bug where single-line docstrings were causing files to be mishandled by pytest-examples.

With this PR pydantic/pytest-examples#15, these get caught, and as a result I was able to find these issues.

Also I'll note that this other PR pydantic/pytest-examples#14 makes it so that we can run pytest --update-examples and it doesn't produce any invalid example updates that need to be reverted.

I've opened this as a draft because I don't think we should merge this PR until we can update pytest-examples, so this can serve as a reminder that we need to do that.

@dmontagu dmontagu marked this pull request as draft July 11, 2023 17:18
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 11, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d29704d
Status: ✅  Deploy successful!
Preview URL: https://40fb656c.pydantic-docs2.pages.dev
Branch Preview URL: https://fix-docstrings.pydantic-docs2.pages.dev

View logs

@dmontagu dmontagu marked this pull request as ready for review July 11, 2023 22:05
@dmontagu dmontagu merged commit 767472f into main Jul 11, 2023
@dmontagu dmontagu deleted the fix-docstrings branch July 11, 2023 22:05
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.

2 participants