Title: Pass tests in offline mode · Issue #555 · usethis-python/usethis-python · GitHub
Open Graph Title: Pass tests in offline mode · Issue #555 · usethis-python/usethis-python
X Title: Pass tests in offline mode · Issue #555 · usethis-python/usethis-python
Description: Motivation We have a decorator @pytest.mark.usefixtures("_vary_network_conn") to allow us to test both online and offline. But there's currently no mechanism to ensure that this decorator is always used when it should be, which means the...
Open Graph Description: Motivation We have a decorator @pytest.mark.usefixtures("_vary_network_conn") to allow us to test both online and offline. But there's currently no mechanism to ensure that this decorator is always...
X Description: Motivation We have a decorator @pytest.mark.usefixtures("_vary_network_conn") to allow us to test both online and offline. But there's currently no mechanism to ensure that this decor...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/555
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pass tests in offline mode","articleBody":"**Motivation**\nWe have a decorator `@pytest.mark.usefixtures(\"_vary_network_conn\")` to allow us to test both online and offline. But there's currently no mechanism to ensure that this decorator is always used when it should be, which means there are tests which will fail when offline.\n\nWe should create a mechanism to run the test suite in offline mode in CI, if possible. Otherwise, we should just do a pass of running the test suite locally and making sure everything passes.\n\n**Summary of desired enhancement**\nTest that the test suite can pass when offline.\n","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-04-24T08:58:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/555/usethis-python/issues/555"}
| 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:9d927ed7-ff7d-4b71-9060-d8e15fbf7a21 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B156:2EEEB5:343CBF:478063:6A4D36D1 |
| html-safe-nonce | 5d3f94df954050fe9c06b9323fe0f37859135260da880bc04d9bd73ffc6db3e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU2OjJFRUVCNTozNDNDQkY6NDc4MDYzOjZBNEQzNkQxIiwidmlzaXRvcl9pZCI6IjE3NDcxNjA3OTA0ODQyMDMyMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ddfb4a8cf3bd75a251bf9eb3611e50b1dacc80879fac8cb8b5467fdaa708eec4 |
| hovercard-subject-tag | issue:3016540401 |
| 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/555/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75d5374e09cb5260fb0b5f6366014810a27e555a535459b1f56ba2c4969f3618/usethis-python/usethis-python/issues/555 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75d5374e09cb5260fb0b5f6366014810a27e555a535459b1f56ba2c4969f3618/usethis-python/usethis-python/issues/555 |
| og:image:alt | Motivation We have a decorator @pytest.mark.usefixtures("_vary_network_conn") to allow us to test both online and offline. But there's currently no mechanism to ensure that this decorator is always... |
| 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 | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width