Title: Reset `usethis_config` to defaults between tests in `clear_functools_caches` fixture by Copilot · Pull Request #1829 · usethis-python/usethis-python · GitHub
Open Graph Title: Reset `usethis_config` to defaults between tests in `clear_functools_caches` fixture by Copilot · Pull Request #1829 · usethis-python/usethis-python
X Title: Reset `usethis_config` to defaults between tests in `clear_functools_caches` fixture by Copilot · Pull Request #1829 · usethis-python/usethis-python
Description: usethis_config.inferred_backend (and potentially other inferred values) persisted across tests, causing stale cached config to silently affect subsequent tests. Changes Config reset: Add usethis_config._restore(UsethisConfig()) to the clear_functools_caches autouse fixture, resetting all config fields to defaults before each test _vary_network_conn scope change: Downgrade from scope="session" to function-scoped with an explicit dependency on clear_functools_caches to guarantee the config is reset before the offline flag is re-applied Remove now-unnecessary teardown logic in _vary_network_conn since the config reset handles cleanup
Open Graph Description: usethis_config.inferred_backend (and potentially other inferred values) persisted across tests, causing stale cached config to silently affect subsequent tests. Changes Config reset: Add usethis_c...
X Description: usethis_config.inferred_backend (and potentially other inferred values) persisted across tests, causing stale cached config to silently affect subsequent tests. Changes Config reset: Add usethis_c...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1829
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e28762b6-ad0c-3298-5a8f-f7be9e7ee065 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A1CE:3A3FB7:22AA7F:2E7628:6A4D32B1 |
| html-safe-nonce | 0078c40764f1eb540768a92bcd424e33dc9783287a7c059b0fd1599275545dfc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUNFOjNBM0ZCNzoyMkFBN0Y6MkU3NjI4OjZBNEQzMkIxIiwidmlzaXRvcl9pZCI6IjcyMzk2NTk3MzI3Njc0MjExMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2113ddac9d82e43a159c9df19bfba6214c8245b65e56a610d406127ff5431289 |
| hovercard-subject-tag | pull_request:3494747770 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/usethis-python/usethis-python/pull/1829/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | usethis_config.inferred_backend (and potentially other inferred values) persisted across tests, causing stale cached config to silently affect subsequent tests. Changes Config reset: Add usethis_c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width