Home
last modified time | relevance | path

Searched refs:stub_with (Results 1 – 25 of 31) sorted by relevance

12

/external/autotest/scheduler/
Dmonitor_db_cleanup_test.py27 self.god.stub_with(scheduler_config.config,
39 self.god.stub_with(self.cleanup, '_should_reverify_hosts_now',
53 self.god.stub_with(scheduler_config.config,
65 self.god.stub_with(self.cleanup, '_should_reverify_hosts_now',
Ddrone_manager_unittest.py81 self.god.stub_with(drones, 'AUTOTEST_INSTALL_DIR',
84 self.god.stub_with(self.manager, '_results_dir', self._RESULTS_DIR)
91 self.god.stub_with(self.manager, 'refresh_drone_configs', do_nothing)
354 self.god.stub_with(self.manager, '_get_max_pidfile_refreshes',
393 self.god.stub_with(drones, 'AUTOTEST_INSTALL_DIR',
396 self.god.stub_with(self.manager, '_results_dir', self._RESULTS_DIR)
403 self.god.stub_with(self.manager, 'refresh_drone_configs', do_nothing)
417 self.god.stub_with(self._DRONE_CLASS, '_drone_utility_path',
470 self.god.stub_with(drone_manager, '_the_instance', self.manager)
510 self.god.stub_with(local_drone, '_host', mock_host)
Dmonitor_db_unittest.py107 self.god.stub_with(connection_manager, 'db_connection', self._database)
108 self.god.stub_with(monitor_db, '_db_manager', connection_manager)
109 self.god.stub_with(monitor_db, '_db', self._database)
113 self.god.stub_with(monitor_db, '_inline_host_acquisition', True)
114 self.god.stub_with(monitor_db.BaseDispatcher,
117 self.god.stub_with(scheduler_models, '_db', self._database)
118 self.god.stub_with(drone_manager.instance(), '_results_dir',
120 self.god.stub_with(drone_manager.instance(), '_temporary_directory',
122 self.god.stub_with(drone_manager.instance(), 'initialize',
124 self.god.stub_with(drone_manager.instance(), 'execute_actions',
[all …]
Drdb_cache_unittests.py112 self.god.stub_with(rdb.AvailableHostRequestHandler,
162 self.god.stub_with(rdb.AvailableHostRequestHandler,
192 self.god.stub_with(rdb.AvailableHostRequestHandler,
236 self.god.stub_with(rdb.AvailableHostRequestHandler,
314 self.god.stub_with(
338 self.god.stub_with(rdb.AvailableHostRequestHandler,
Dgc_stats_unittest.py28 self.god.stub_with(logging, 'debug', _mock_logging_func)
29 self.god.stub_with(logging, 'info', _mock_logging_func)
Drdb_integration_tests.py163 self.god.stub_with(rdb.AvailableHostQueryManager, 'find_hosts',
328 self.god.stub_with(rdb_requests.BaseHostRequestManager, 'response',
357 self.god.stub_with(rdb_requests.BaseHostRequestManager, 'response',
435 self.god.stub_with(rdb_requests.BaseHostRequestManager, 'response',
513 self.god.stub_with(rdb_requests.BaseHostRequestManager, 'response',
523 self.god.stub_with(provision.Cleanup,
Ddrones_unittest.py38 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
56 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
Drdb_testing_utils.py362 self.god.stub_with(connection_manager, 'db_connection', self._database)
363 self.god.stub_with(monitor_db, '_db_manager', connection_manager)
364 self.god.stub_with(scheduler_models, '_db', self._database)
365 self.god.stub_with(monitor_db, '_inline_host_acquisition',
Ddrone_task_queue_unittest.py46 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
Dscheduler_models_unittest.py38 self.god.stub_with(scheduler_models, '_db', self._database)
158 self.god.stub_with(scheduler_models, 'Job', MockJob)
321 self.god.stub_with(models.SpecialTask.objects, 'create', _mock_create)
Dmonitor_db_functional_test.py347 self.god.stub_with(global_config, 'global_config', self.mock_config)
353 self.god.stub_with(email_manager, 'manager', self.mock_email_manager)
359 self.god.stub_with(monitor_db, '_db', self._database)
360 self.god.stub_with(scheduler_models, '_db', self._database)
Dthread_lib_unittest.py47 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
/external/autotest/server/
Dserver_job_unittest.py47 self.god.stub_with(server_job.os, 'mkdir', lambda p: None)
50 self.god.stub_with(server_job.logging_manager, 'get_logging_manager',
54 self.god.stub_with(server_job.sysinfo, 'sysinfo', lambda r: sysi())
Dfrontend_unittest.py64 self.god.stub_with(sys, 'stdout', fake_stdout)
/external/autotest/client/bin/
Dsetup_job_unittest.py22 self.god.stub_with(setup_job.setup_job, '_get_environ_autodir',
120 self.god.stub_with(logging_manager, 'configure_logging',
126 self.god.stub_with(logging_manager, 'get_logging_manager',
144 self.god.stub_with(base_job.job_directory, '_ensure_valid',
Djob_unittest.py22 self.god.stub_with(job.base_client_job, '_get_environ_autodir',
131 self.god.stub_with(logging_manager, 'configure_logging',
137 self.god.stub_with(logging_manager, 'get_logging_manager',
163 self.god.stub_with(job.base_job.job_directory, '_ensure_valid',
/external/autotest/client/common_lib/test_utils/
Dmock.py391 def stub_with(self, namespace, symbol, new_attribute): member in mock_god
411 self.stub_with(namespace, symbol, mock_attribute)
416 self.stub_with(cls, symbol, staticmethod(mock_attribute))
422 self.stub_with(namespace, symbol, mock_class)
433 self.stub_with(namespace, symbol,
/external/autotest/frontend/afe/
Drpc_interface_unittest.py458 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe)
468 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe)
522 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe)
570 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe)
596 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe)
619 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe)
Dresources_test.py283 self.god.stub_with(control_file, 'read_control_file',
/external/autotest/client/
Dsetup_modules_unittest.py17 self.god.stub_with(sys, 'stderr', self.test_stderr)
/external/autotest/server/hosts/
Dbase_classes_unittest.py16 self.god.stub_with(utils, "get_server_dir",
/external/autotest/scheduler/shard/
Dshard_client_integration_tests.py77 self.god.stub_with(scheduler_models.HostQueueEntry, 'update_field',
/external/autotest/cli/
Dcli_mock.py37 self.god.stub_with(rpc_client_lib, 'authorization_headers',
/external/autotest/database/
Ddatabase_connection_unittest.py49 self.god.stub_with(db, '_get_backend', get_fake_backend)
/external/autotest/frontend/tko/
Drpc_interface_unittest_fixme.py94 self.god.stub_with(models.TempManager, '_get_column_names',
96 self.god.stub_with(models.TempManager, '_cursor_rowcount',

12