We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d9ff9 commit 8b49bf7Copy full SHA for 8b49bf7
tests/conftest.py
@@ -98,7 +98,11 @@ def _online_status(request: pytest.FixtureRequest) -> NetworkConn:
98
99
@pytest.fixture(scope="session")
100
def _vary_network_conn(_online_status: NetworkConn) -> Generator[None, None, None]:
101
- """Fixture to vary the network connection; returns True if offline."""
+ """Fixture to vary the network connection.
102
+
103
+ Use `usethis._config.usethis_config` to check whether things are in offline
104
+ model, since this fixture does not return anything.
105
+ """
106
offline = _online_status is NetworkConn.OFFLINE
107
108
usethis_config.offline = offline
0 commit comments