MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / mock_no_home_dir

Function mock_no_home_dir

tests/test_connect.py:90–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89@contextlib.contextmanager
90def mock_no_home_dir():
91 with unittest.mock.patch(
92 'pathlib.Path.home', unittest.mock.Mock(side_effect=RuntimeError)
93 ):
94 yield
95
96
97@contextlib.contextmanager

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected