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

Function mock_dev_null_home_dir

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

Source from the content-addressed store, hash-verified

92
93@contextlib.contextmanager
94def mock_dev_null_home_dir():
95 with unittest.mock.patch(
96 'pathlib.Path.home',
97 unittest.mock.Mock(return_value=pathlib.Path('/dev/null')),
98 ):
99 yield
100
101
102class TestSettings(tb.ConnectedTestCase):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…