Lines Matching refs:Mock
41 instance = mock.Mock()
42 testsuite = mock.Mock()
45 platform = mock.Mock()
57 env = mock.Mock()
58 options = mock.Mock()
66 jobserver = mock.Mock()
245 testsuite_mock = mock.Mock()
246 platform_mock = mock.Mock()
297 process_mock = mock.Mock(
299 communicate=mock.Mock(
307 testsuite_mock = mock.Mock()
308 platform_mock = mock.Mock()
312 jobserver_mock = mock.Mock(
313 popen=mock.Mock(side_effect=mock_popen)
315 instance_mock = mock.Mock(add_missing_case_status=mock.Mock())
325 cmake.options = mock.Mock()
330 popen_mock = mock.Mock(side_effect=mock_popen)
331 change_mock = mock.Mock()
429 process_mock = mock.Mock(
431 communicate=mock.Mock(
439 testsuite_mock = mock.Mock()
441 platform_mock = mock.Mock()
445 jobserver_mock = mock.Mock(
446 popen=mock.Mock(side_effect=mock_popen)
448 instance_mock = mock.Mock(add_missing_case_status=mock.Mock())
454 instance_mock.testsuite = mock.Mock()
457 instance_mock.testcases = [mock.Mock(), mock.Mock()]
465 cmake.options = mock.Mock()
468 cmake.env = mock.Mock()
473 popen_mock = mock.Mock(side_effect=mock_popen)
474 change_mock = mock.Mock()
677 dom = mock.Mock()
679 res = mock.Mock(get_default_domain=mock.Mock(return_value=dom))
685 cache_elem = mock.Mock()
711 return mock.Mock()
713 testsuite_mock = mock.Mock()
716 platform_mock = mock.Mock()
724 instance_mock = mock.Mock()
727 fb.env = mock.Mock()
728 fb.env.options = mock.Mock()
796 env_mock = mock.Mock()
797 instance_mock = mock.Mock()
854 env_mock = mock.Mock()
855 instance_mock = mock.Mock()
861 log_info_mock = mock.Mock()
1512 instance_mock = mock.Mock()
1517 instance_mock.handler = mock.Mock()
1520 env_mock = mock.Mock()
1523 pb.options = mock.Mock()
1529 pb.cmake = mock.Mock(return_value=cmake_res)
1530 pb.build = mock.Mock(return_value=build_res)
1531 pb.determine_testcases = mock.Mock(side_effect=mock_determine_testcases)
1533 pb.report_out = mock.Mock()
1534 pb.cleanup_artifacts = mock.Mock()
1535 pb.cleanup_device_testing_artifacts = mock.Mock()
1536 pb.run = mock.Mock()
1537 pb.gather_metrics = mock.Mock(return_value=metrics_res)
1539 pipeline_mock = mock.Mock(put=mock.Mock(side_effect=mock_pipeline_put))
1540 done_mock = mock.Mock()
1541 lock_mock = mock.Mock(
1542 __enter__=mock.Mock(return_value=(mock.Mock(), mock.Mock())),
1543 __exit__=mock.Mock(return_value=None)
1545 results_mock = mock.Mock()
1645 symbols_mock = [mock.Mock(n=name) for name in symbols_names]
1649 sections_mock = [mock.Mock(spec=SymbolTableSection)]
1650 sections_mock[0].iter_symbols = mock.Mock(return_value=symbols_mock)
1652 elf_mock = mock.Mock()
1653 elf_mock().iter_sections = mock.Mock(return_value=sections_mock)
1655 results_mock = mock.Mock()
1657 instance_mock = mock.Mock()
1662 instance_mock.compose_case_name = mock.Mock(side_effect=iter(added_tcs))
1730 instance_mock = mock.Mock()
1732 env_mock = mock.Mock()
1735 pb.options = mock.Mock(runtime_artifact_cleanup=runtime_artifact_cleanup)
1750 instance_mock = mock.Mock()
1754 env_mock = mock.Mock()
1757 pb._get_binaries = mock.Mock(return_value=bins)
1758 pb.cleanup_artifacts = mock.Mock()
1759 pb._sanitize_files = mock.Mock()
1804 instance_mock = mock.Mock()
1807 instance_mock.platform = mock.Mock()
1809 env_mock = mock.Mock()
1812 pb._get_binaries_from_runners = mock.Mock(return_value=runner_binaries)
1859 instance_mock = mock.Mock()
1861 env_mock = mock.Mock()
1878 instance_mock = mock.Mock()
1879 env_mock = mock.Mock()
1882 pb._sanitize_runners_file = mock.Mock()
1883 pb._sanitize_zephyr_base_from_files = mock.Mock()
1922 instance_mock = mock.Mock()
1924 env_mock = mock.Mock()
1984 instance_mock = mock.Mock()
1986 env_mock = mock.Mock()
2069 instance_mock = mock.Mock()
2080 skip_mock_tc = mock.Mock(status=TwisterStatus.SKIP, reason=None)
2082 unknown_mock_tc = mock.Mock(status=mock.Mock(value='dummystatus'), reason=None)
2087 env_mock = mock.Mock()
2093 pb.log_info_file = mock.Mock()
2095 results_mock = mock.Mock(
2166 handler = mock.Mock(ready=True, args=['dummy_handler'])
2197 instance_mock = mock.Mock()
2200 env_mock = mock.Mock()
2209 pb.cmake_assemble_args = mock.Mock(return_value=['dummy'])
2210 cmake_res_mock = mock.Mock()
2211 pb.run_cmake = mock.Mock(return_value=cmake_res_mock)
2229 instance_mock = mock.Mock()
2231 env_mock = mock.Mock()
2236 pb.run_build = mock.Mock(return_value={'dummy': 'dummy'})
2315 pytest_mock = mock.Mock(spec=Pytest)
2316 harness_mock = mock.Mock()
2324 instance_mock = mock.Mock()
2325 instance_mock.handler.get_test_timeout = mock.Mock(return_value=60)
2329 instance_mock.handler.duts = [mock.Mock(name='dummy dut')]
2333 env_mock = mock.Mock()
2340 pb.parse_generated = mock.Mock()
2385 instance_mock = mock.Mock()
2387 env_mock = mock.Mock()
2393 pb.calc_size = mock.Mock()
2431 size_calc_mock = mock.Mock()
2433 instance_mock = mock.Mock()
2437 instance_mock.calculate_sizes = mock.Mock(return_value=size_calc_mock)
2499 jobclient_mock = mock.Mock(jobs=32)
2504 instances = {'dummy instance': mock.Mock(metrics={'k': 'v'})}
2505 suites = [mock.Mock()]
2506 env_mock = mock.Mock()
2516 tr.update_counting_before_pipeline = mock.Mock()
2517 tr.execute = mock.Mock()
2518 tr.show_brief = mock.Mock()
2520 gnumakejobserver_mock = mock.Mock()
2522 jobclient_mock = mock.Mock()
2527 done_instance = mock.Mock(
2533 manager_mock = mock.Mock()
2534 manager_mock().LifoQueue = mock.Mock(
2538 results_mock = mock.Mock()
2557 mock.patch('time.sleep', mock.Mock()), \
2577 'dummy1': mock.Mock(
2580 testsuite=mock.Mock(
2581 testcases=[mock.Mock()]
2584 'dummy2': mock.Mock(
2587 testsuite=mock.Mock(
2588 testcases=[mock.Mock(), mock.Mock(), mock.Mock(), mock.Mock()]
2591 'dummy3': mock.Mock(
2594 testsuite=mock.Mock(
2595 testcases=[mock.Mock()]
2598 'dummy4': mock.Mock(
2601 testsuite=mock.Mock(
2602 testcases=[mock.Mock()]
2605 'dummy5': mock.Mock(
2608 testsuite=mock.Mock(
2609 testcases=[mock.Mock()]
2613 suites = [mock.Mock()]
2614 env_mock = mock.Mock()
2617 tr.results = mock.Mock(
2663 'dummy1': mock.Mock(),
2664 'dummy2': mock.Mock(),
2665 'dummy3': mock.Mock(),
2666 'dummy4': mock.Mock(),
2667 'dummy5': mock.Mock()
2669 suites = [mock.Mock(), mock.Mock()]
2670 env_mock = mock.Mock()
2673 tr.results = mock.Mock(
2720 'dummy1': mock.Mock(run=True, retries=0, status=TwisterStatus.PASS, build_dir="/tmp"),
2721 'dummy2': mock.Mock(run=True, retries=0, status=TwisterStatus.SKIP, build_dir="/tmp"),
2722 'dummy3': mock.Mock(run=True, retries=0, status=TwisterStatus.FILTER, build_dir="/tmp"),
2723 'dummy4': mock.Mock(run=True, retries=0, status=TwisterStatus.ERROR, build_dir="/tmp"),
2724 'dummy5': mock.Mock(run=True, retries=0, status=TwisterStatus.FAIL, build_dir="/tmp")
2728 suites = [mock.Mock(), mock.Mock()]
2729 env_mock = mock.Mock()
2732 tr.get_cmake_filter_stages = mock.Mock(
2735 tr.results = mock.Mock(iteration=0)
2737 pipeline_mock = mock.Mock()
2781 env_mock = mock.Mock()
2784 tr.jobserver = mock.Mock(
2785 get_job=mock.Mock(
2790 pipeline_mock = mock.Mock()
2791 pipeline_mock.get_nowait = mock.Mock(side_effect=mock_get_nowait)
2792 done_queue_mock = mock.Mock()
2793 lock_mock = mock.Mock()
2794 results_mock = mock.Mock()
2798 return_value=mock.Mock()) as pb:
2817 env_mock = mock.Mock()
2820 tr.add_tasks_to_queue = mock.Mock()
2823 process_mock = mock.Mock()
2824 process_mock().join = mock.Mock(side_effect=mock_join)
2826 pipeline_mock = mock.Mock()
2827 done_mock = mock.Mock()