Home
last modified time | relevance | path

Searched refs:mock_open (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/scripts/tests/twister/
Dtest_config_parser.py67 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
93 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
176 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
195 with mock.patch('builtins.open', mock.mock_open(read_data=yaml_data)):
Dtest_cmakecache.py181 with mock.patch('builtins.open', mock.mock_open(read_data=file_data)):
203 with mock.patch('builtins.open', mock.mock_open(read_data=file_data)):
236 with mock.patch('builtins.open', mock.mock_open(read_data=file_data)):
252 with mock.patch('builtins.open', mock.mock_open(read_data=file_data)):
Dtest_hardwaremap.py298 def mock_open(*args, **kwargs): function
300 return mock.mock_open(read_data=map_file)(*args, **kwargs)
307 with mock.patch('builtins.open', mock_open):
657 read_mock = mock.mock_open(read_data=hwm)
658 write_mock = mock.mock_open()
660 def mock_open(filename, mode='r'): function
670 open_mock = mock.Mock(side_effect=mock_open)
Dtest_platform.py117 with mock.patch('builtins.open', mock.mock_open(read_data=platform_text)):
Dtest_quarantine.py167 with mock.patch('builtins.open', mock.mock_open(read_data=file_contents)):
Dtest_runner.py337 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()), \
[all …]
Dtest_handlers.py277 with mock.patch('builtins.open', mock.mock_open(read_data='1')):
289 with mock.patch('builtins.open', mock.mock_open(read_data='-1')):
398 mock.mock_open(read_data='')
720 with mock.patch('builtins.open', mock.mock_open(read_data='')):
744 with mock.patch('builtins.open', mock.mock_open(read_data='')):
1469 with mock.patch('builtins.open', mock.mock_open(read_data='')), \
1907 file_object = mock.mock_open(read_data=contents).return_value
2037 mock.patch('builtins.open', mock.mock_open(read_data='1')), \
Dtest_scl.py161 mock.patch('builtins.open', mock.mock_open()) as mock_file:
Dtest_testsuite.py265 mock.patch('builtins.open', mock.mock_open(read_data='dummy data')), \
Dtest_testinstance.py247 mock.mock_open(read_data='')
Dtest_harness.py295 open_mock = mock.mock_open()
Dtest_testplan.py1626 with mock.patch('builtins.open', mock.mock_open(read_data=testplan_data)), \
/Zephyr-latest/scripts/tests/build_helpers/
Dtest_domains.py40 def mock_open(*args, **kwargs): function
42 return mock.mock_open(read_data=f_contents)(args, kwargs)
48 mock.patch('builtins.open', mock_open), \
/Zephyr-latest/scripts/build/
Dcheck_init_priorities_test.py255 with mock.patch("builtins.open", mock.mock_open()) as mock_open:
260 mock_open.assert_called_once_with(pathlib.Path("pickle"), "rb")