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

Function mock_dev_null_home_dir

tests/test_connect.py:98–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected