Lines Matching refs:mock_open
337 mock.patch('builtins.open', mock.mock_open()), \
482 mock.patch('builtins.open', mock.mock_open()), \
691 def mock_open(filepath, *args, **kwargs): function
700 return mock.mock_open(read_data=rd)()
738 mock.patch('builtins.open', mock_open), \
783 def mock_open(filename, *args, **kwargs): function
786 return mock.mock_open(read_data='file contents')()
800 with mock.patch('builtins.open', mock_open), \
1667 mock.patch('builtins.open', mock.mock_open()):
1866 mock.patch('builtins.open', mock.mock_open()), \
1930 mock.mock_open(read_data=runners_text)) as f:
1942 'CMakeCache.txt': mock.mock_open(
1952 os.path.join('zephyr', 'runners.yaml'): mock.mock_open(
1979 def mock_open(fname, *args, **kwargs): function
1991 mock.patch('builtins.open', mock_open), \