Title: Document that tests should not have side-effects in the repo · Issue #1095 · usethis-python/usethis-python · GitHub
Open Graph Title: Document that tests should not have side-effects in the repo · Issue #1095 · usethis-python/usethis-python
X Title: Document that tests should not have side-effects in the repo · Issue #1095 · usethis-python/usethis-python
Description: e.g. shouldn't modify any files, create new files, etc. in the repo itself; only in temporary directories (usually via the pytest tmp_path fixture). Mention that if this happens, it's a sign that the CWD is not properly set using the use...
Open Graph Description: e.g. shouldn't modify any files, create new files, etc. in the repo itself; only in temporary directories (usually via the pytest tmp_path fixture). Mention that if this happens, it's a sign that t...
X Description: e.g. shouldn't modify any files, create new files, etc. in the repo itself; only in temporary directories (usually via the pytest tmp_path fixture). Mention that if this happens, it's a sig...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1095
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document that tests should not have side-effects in the repo","articleBody":"e.g. shouldn't modify any files, create new files, etc. in the repo itself; only in temporary directories (usually via the pytest `tmp_path` fixture).\n\nMention that if this happens, it's a sign that the CWD is not properly set using the `usethis._test.change_cwd` context manager\n\nThis should be mentioned in CONTRIBUTING.md and copilot-instructions.md","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-11-05T11:53:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1095/usethis-python/issues/1095"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bc7a057e-264b-93f8-dfd4-55ec8fe0e90f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD96:1EE8:B2D069:1037415:6A4D083B |
| html-safe-nonce | 0428f3ecce6940baae8aa79b39136e3ba5314d704035288f700b0ba7aa246cf4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDk2OjFFRTg6QjJEMDY5OjEwMzc0MTU6NkE0RDA4M0IiLCJ2aXNpdG9yX2lkIjoiMzc3ODA2NTk2OTM3MDE3MTQ1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 818ce81e5101cd8824aacdb485df1d5e063c421e2f3ab879899347f7268a2f4e |
| hovercard-subject-tag | issue:3590663752 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/usethis-python/usethis-python/1095/issue_layout |
| twitter:image | https://opengraph.githubassets.com/81ddb1b4f49cae3a2cb5520691ccb22a1557a04bee9df59dba16d255b8cb3175/usethis-python/usethis-python/issues/1095 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/81ddb1b4f49cae3a2cb5520691ccb22a1557a04bee9df59dba16d255b8cb3175/usethis-python/usethis-python/issues/1095 |
| og:image:alt | e.g. shouldn't modify any files, create new files, etc. in the repo itself; only in temporary directories (usually via the pytest tmp_path fixture). Mention that if this happens, it's a sign that t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathanjmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width