Searched refs:mock_open (Results 1 – 14 of 14) sorted by relevance
/Zephyr-latest/scripts/tests/twister/ |
D | test_config_parser.py | 67 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)):
|
D | test_cmakecache.py | 181 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)):
|
D | test_hardwaremap.py | 298 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)
|
D | test_platform.py | 117 with mock.patch('builtins.open', mock.mock_open(read_data=platform_text)):
|
D | test_quarantine.py | 167 with mock.patch('builtins.open', mock.mock_open(read_data=file_contents)):
|
D | test_runner.py | 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()), \ [all …]
|
D | test_handlers.py | 277 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')), \
|
D | test_scl.py | 161 mock.patch('builtins.open', mock.mock_open()) as mock_file:
|
D | test_testsuite.py | 265 mock.patch('builtins.open', mock.mock_open(read_data='dummy data')), \
|
D | test_testinstance.py | 247 mock.mock_open(read_data='')
|
D | test_harness.py | 295 open_mock = mock.mock_open()
|
D | test_testplan.py | 1626 with mock.patch('builtins.open', mock.mock_open(read_data=testplan_data)), \
|
/Zephyr-latest/scripts/tests/build_helpers/ |
D | test_domains.py | 40 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/ |
D | check_init_priorities_test.py | 255 with mock.patch("builtins.open", mock.mock_open()) as mock_open: 260 mock_open.assert_called_once_with(pathlib.Path("pickle"), "rb")
|