Skip to content

Ensure docs tests always run in the right folder#6487

Merged
dmontagu merged 1 commit intomainfrom
docs-tests
Jul 10, 2023
Merged

Ensure docs tests always run in the right folder#6487
dmontagu merged 1 commit intomainfrom
docs-tests

Conversation

@dmontagu
Copy link
Copy Markdown
Contributor

@dmontagu dmontagu commented Jul 6, 2023

I frequently find myself annoyed because, if I use PyCharm to run the test_docs.py tests, it defaults to running in a different folder than it uses when run via make test, and it causes some tests to fail.

This PR fixes that and ensures no matter what the cwd is when pytest is running, it gets updated properly and the docs examples tests pass.

skip change file check

Selected Reviewer: @lig

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 75d9a2e
Status: ✅  Deploy successful!
Preview URL: https://86a0060e.pydantic-docs2.pages.dev
Branch Preview URL: https://docs-tests.pydantic-docs2.pages.dev

View logs

@dmontagu
Copy link
Copy Markdown
Contributor Author

dmontagu commented Jul 6, 2023

please review

@dmontagu
Copy link
Copy Markdown
Contributor Author

dmontagu commented Jul 6, 2023

please review

Copy link
Copy Markdown
Contributor

@lig lig left a comment

Choose a reason for hiding this comment

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

👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants