Skip to content

Commit 8b49bf7

Browse files
Update docstring in _vary_network_conn (#588)
1 parent 42d9ff9 commit 8b49bf7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ def _online_status(request: pytest.FixtureRequest) -> NetworkConn:
9898

9999
@pytest.fixture(scope="session")
100100
def _vary_network_conn(_online_status: NetworkConn) -> Generator[None, None, None]:
101-
"""Fixture to vary the network connection; returns True if offline."""
101+
"""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+
"""
102106
offline = _online_status is NetworkConn.OFFLINE
103107

104108
usethis_config.offline = offline

0 commit comments

Comments
 (0)