/dports/devel/py-openstacksdk/openstacksdk-0.60.0/openstack/tests/unit/cloud/ |
H A D | test_inventory.py | 28 def test__init(self, mock_cloud, mock_config): argument 29 mock_config.return_value.get_all.return_value = [{}] 33 mock_config.assert_called_once_with( 42 def test__init_one_cloud(self, mock_cloud, mock_config): argument 43 mock_config.return_value.get_one.return_value = [{}] 47 mock_config.assert_called_once_with( 58 def test_list_hosts(self, mock_cloud, mock_config): argument 59 mock_config.return_value.get_all.return_value = [{}] 79 mock_config.return_value.get_all.return_value = [{}] 118 def test_search_hosts(self, mock_cloud, mock_config): argument [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/telemetry/telemetry/command_line/ |
H A D | parser_unittest.py | 56 self.mock_config.expectations_files = [] 63 parser.ParseArgs(self.mock_config, ['--help']) 69 parser.ParseArgs(self.mock_config, ['help', 'run']) 88 args = parser.ParseArgs(self.mock_config, [ 95 args = parser.ParseArgs(self.mock_config, [ 102 args = parser.ParseArgs(self.mock_config, [ 110 parser.ParseArgs(self.mock_config, [ 123 parser.ParseArgs(self.mock_config, [ 130 parser.ParseArgs(self.mock_config, [ 144 args = parser.ParseArgs(self.mock_config, [ [all …]
|
/dports/www/py-praw/praw-6.2.0/tests/unit/ |
H A D | test_config.py | 12 def _assert_config_read(environment, mock_config): argument 13 mock_instance = mock_config.return_value 62 def test_load_ini_from_appdata(self, mock_config): argument 63 self._assert_config_read("APPDATA", mock_config) 66 def test_load_ini_from_home(self, mock_config): argument 67 self._assert_config_read("HOME", mock_config) 70 def test_load_ini_from_xdg_config_home(self, mock_config): argument 71 self._assert_config_read("XDG_CONFIG_HOME", mock_config) 74 def test_load_ini_with_no_config_directory(self, mock_config): argument 75 mock_instance = mock_config.return_value
|
/dports/sysutils/py-google-compute-engine/compute-image-packages-20190522/packages/python-google-compute-engine/google_compute_engine/boto/tests/ |
H A D | boto_config_test.py | 35 def testCreateConfig(self, mock_config, mock_logger, mock_watcher): 37 mock_config.ConfigManager.return_value = mock_config_instance 39 mocks.attach_mock(mock_config.ConfigManager, 'config') 63 def testCreateConfigProjectId(self, mock_config, mock_watcher): 65 mock_config.ConfigManager.return_value = mock_config_instance 80 def testCreateConfigExit(self, mock_config, mock_watcher): 82 mock_config.ConfigManager.return_value = mock_config_instance 90 mock_config.SetOption.assert_not_called()
|
H A D | compute_auth_test.py | 33 self.mock_config = mock.Mock() 34 self.mock_config.get.return_value = self.service_account 48 mocks.attach_mock(self.mock_config, 'config') 53 None, self.mock_config, self.mock_provider) 69 compute_auth.ComputeAuth(None, self.mock_config, self.mock_provider) 72 self.mock_config.get.return_value = None 75 compute_auth.ComputeAuth(None, self.mock_config, self.mock_provider)
|
/dports/sysutils/py-google-compute-engine/compute-image-packages-20190522/packages/python-google-compute-engine/google_compute_engine/tests/ |
H A D | config_manager_test.py | 55 self.mock_config = mock.Mock() 56 self.mock_config.has_option.side_effect = _HasOption 57 self.mock_config.has_section.side_effect = _HasSection 59 config_manager.parser.Parser.return_value = self.mock_config 83 self.assertEqual(self.mock_config.mock_calls, expected_calls) 93 self.assertEqual(self.mock_config.mock_calls, expected_calls) 102 self.assertEqual(self.mock_config.mock_calls, expected_calls) 112 self.assertEqual(self.mock_config.mock_calls, expected_calls) 121 self.assertEqual(self.mock_config.mock_calls, expected_calls) 130 self.assertEqual(self.mock_config.mock_calls, expected_calls) [all …]
|
/dports/sysutils/py-salt/salt-3004.1/tests/pytests/unit/states/apache/ |
H A D | test_apache.py | 29 mock_config = MagicMock(return_value=config) 30 with patch.dict(apache.__salt__, {"apache.config": mock_config}): 35 mock_config = MagicMock(return_value=new_config) 36 with patch.dict(apache.__salt__, {"apache.config": mock_config}): 48 mock_config = MagicMock(return_value=new_config) 49 with patch.dict(apache.__salt__, {"apache.config": mock_config}):
|
/dports/security/clusterssh/clusterssh-4.16/t/ |
H A D | 20helper.t | 57 my $mock_config = App::ClusterSSH::Config->new(); 59 $script = $helper->script($mock_config); 68 $mock_config->{comms} = 'method'; 70 $script = $helper->script($mock_config); 77 $mock_config->{method} = 'binary'; 79 $script = $helper->script($mock_config); 86 $mock_config->{method_args} = 'rubbish'; 87 $mock_config->{command} = 'echo'; 88 $mock_config->{auto_close} = 5; 90 $script = $helper->script($mock_config);
|
/dports/devel/ros-wstool/wstool-0.1.18/test/local/ |
H A D | test_cli.py | 320 self.mock_config = FakeConfig() 323 self.mock_config = FakeConfig( 329 self.mock_config = FakeConfig( 344 self.mock_config = FakeConfig() 347 self.mock_config = FakeConfig( 353 self.mock_config = FakeConfig( 368 self.mock_config = FakeConfig([], [], 'foopath') 371 self.mock_config = FakeConfig( 381 self.mock_config = FakeConfig( 403 self.mock_config = FakeConfig([], [], ws_path) [all …]
|
/dports/sysutils/py-google-compute-engine/compute-image-packages-20190522/packages/python-google-compute-engine/google_compute_engine/instance_setup/tests/ |
H A D | instance_config_test.py | 77 mock_config = mock.create_autospec(instance_config.parser.Parser) 81 mock_config.read = mock.Mock() 82 mock_config.sections = mock.Mock() 83 mock_config.sections.return_value = ['a', 'b'] 84 mock_config.items = lambda key: {'key: %s' % key: 'value: %s' % key} 86 config_parser, mock_config, mock_config] 91 mocks.attach_mock(mock_config, 'config') 159 mock_config = instance_config.InstanceConfig() 160 instance_config.InstanceConfig.WriteConfig(mock_config)
|
/dports/devel/py-moto/moto-2.2.16/tests/test_config/ |
H A D | test_config.py | 18 @mock_config 188 @mock_config 448 @mock_config 554 @mock_config 654 @mock_config 709 @mock_config 731 @mock_config 755 @mock_config 802 @mock_config 950 @mock_config [all …]
|
H A D | test_config_rules.py | 15 from moto.config import mock_config 37 @mock_config 71 @mock_config 114 @mock_config 191 @mock_config 239 @mock_config 312 @mock_config 369 @mock_config 436 @mock_config
|
/dports/textproc/soothsayer/soothsayer-0.6.3/test/lib/plugins/ |
H A D | dictionaryPluginDriver.cpp | 32 Configuration mock_config; in main() local 33 ContextTracker contextTracker(&mock_config); in main() 34 DictionaryPlugin plugin(&mock_config, &contextTracker); in main()
|
H A D | smoothedCountDriver.cpp | 32 Configuration mock_config; in main() local 33 ContextTracker contextTracker(&mock_config); in main() 34 SmoothedCountPlugin plugin(&mock_config, &contextTracker); in main()
|
/dports/security/py-certbot/certbot-1.22.0/tests/ |
H A D | auth_handler_test.py | 71 self.mock_config = mock.Mock(debug_challenges=False) 132 authzr = self.handler.handle_authorizations(mock_order, self.mock_config) 212 mock_order, self.mock_config) 229 mock_order, self.mock_config) 241 self.handler.handle_authorizations(mock_order, self.mock_config) 260 mock_order, self.mock_config) 274 mock_order, self.mock_config) 282 mock_order, self.mock_config) 296 mock_order, self.mock_config) 358 mock_order, self.mock_config) [all …]
|
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/host/tests/ |
H A D | client_zero_test.cpp | 227 auto mock_config = mock_client0->get_block_info(3); in BOOST_AUTO_TEST_CASE() local 228 BOOST_CHECK_EQUAL(mock_config.protover, mock_reg_iface->BLOCK_PROTOVER); in BOOST_AUTO_TEST_CASE() 229 BOOST_CHECK_EQUAL(mock_config.num_inputs, 1); in BOOST_AUTO_TEST_CASE() 230 BOOST_CHECK_EQUAL(mock_config.num_outputs, 1); in BOOST_AUTO_TEST_CASE() 231 BOOST_CHECK_EQUAL(mock_config.ctrl_fifo_size, CTRL_FIFO_SIZE); in BOOST_AUTO_TEST_CASE() 232 BOOST_CHECK_EQUAL(mock_config.ctrl_max_async_msgs, CTRL_MAX_ASYNC_MSGS); in BOOST_AUTO_TEST_CASE() 233 BOOST_CHECK_EQUAL(mock_config.data_mtu, MTU); in BOOST_AUTO_TEST_CASE()
|
/dports/sysutils/py-salt/salt-3004.1/tests/pytests/unit/states/ |
H A D | test_sysctl.py | 121 def mock_config(config_file=None): function 127 with patch.dict(sysctl.__salt__, {"sysctl.show": mock_config}): 142 def mock_config(config_file=None): function 148 with patch.dict(sysctl.__salt__, {"sysctl.show": mock_config}): 164 def mock_config(config_file=None): function 170 with patch.dict(sysctl.__salt__, {"sysctl.show": mock_config}):
|
/dports/databases/py-gdbm/Python-3.8.12/Lib/idlelib/idle_test/ |
H A D | test_config.py | 207 def mock_config(self): member in IdleConfTest 316 conf = self.mock_config() 323 conf = self.mock_config() 335 conf = self.mock_config() 341 conf = self.mock_config() 358 conf = self.mock_config() 377 conf = self.mock_config() 388 conf = self.mock_config() 394 conf = self.mock_config() 433 conf = self.mock_config() [all …]
|
/dports/lang/python310/Python-3.10.1/Lib/idlelib/idle_test/ |
H A D | test_config.py | 207 def mock_config(self): member in IdleConfTest 316 conf = self.mock_config() 323 conf = self.mock_config() 335 conf = self.mock_config() 341 conf = self.mock_config() 358 conf = self.mock_config() 377 conf = self.mock_config() 388 conf = self.mock_config() 394 conf = self.mock_config() 433 conf = self.mock_config() [all …]
|
/dports/lang/python37/Python-3.7.12/Lib/idlelib/idle_test/ |
H A D | test_config.py | 207 def mock_config(self): member in IdleConfTest 316 conf = self.mock_config() 323 conf = self.mock_config() 335 conf = self.mock_config() 341 conf = self.mock_config() 358 conf = self.mock_config() 377 conf = self.mock_config() 388 conf = self.mock_config() 394 conf = self.mock_config() 433 conf = self.mock_config() [all …]
|
/dports/lang/python38/Python-3.8.12/Lib/idlelib/idle_test/ |
H A D | test_config.py | 207 def mock_config(self): member in IdleConfTest 316 conf = self.mock_config() 323 conf = self.mock_config() 335 conf = self.mock_config() 341 conf = self.mock_config() 358 conf = self.mock_config() 377 conf = self.mock_config() 388 conf = self.mock_config() 394 conf = self.mock_config() 433 conf = self.mock_config() [all …]
|
/dports/lang/python311/Python-3.11.0a3/Lib/idlelib/idle_test/ |
H A D | test_config.py | 207 def mock_config(self): member in IdleConfTest 316 conf = self.mock_config() 323 conf = self.mock_config() 335 conf = self.mock_config() 341 conf = self.mock_config() 358 conf = self.mock_config() 377 conf = self.mock_config() 388 conf = self.mock_config() 394 conf = self.mock_config() 433 conf = self.mock_config() [all …]
|
/dports/lang/python-tools/Python-3.8.12/Lib/idlelib/idle_test/ |
H A D | test_config.py | 207 def mock_config(self): member in IdleConfTest 316 conf = self.mock_config() 323 conf = self.mock_config() 335 conf = self.mock_config() 341 conf = self.mock_config() 358 conf = self.mock_config() 377 conf = self.mock_config() 388 conf = self.mock_config() 394 conf = self.mock_config() 433 conf = self.mock_config() [all …]
|
/dports/lang/python39/Python-3.9.9/Lib/idlelib/idle_test/ |
H A D | test_config.py | 207 def mock_config(self): member in IdleConfTest 316 conf = self.mock_config() 323 conf = self.mock_config() 335 conf = self.mock_config() 341 conf = self.mock_config() 358 conf = self.mock_config() 377 conf = self.mock_config() 388 conf = self.mock_config() 394 conf = self.mock_config() 433 conf = self.mock_config() [all …]
|
/dports/databases/py-sqlite3/Python-3.8.12/Lib/idlelib/idle_test/ |
H A D | test_config.py | 207 def mock_config(self): member in IdleConfTest 316 conf = self.mock_config() 323 conf = self.mock_config() 335 conf = self.mock_config() 341 conf = self.mock_config() 358 conf = self.mock_config() 377 conf = self.mock_config() 388 conf = self.mock_config() 394 conf = self.mock_config() 433 conf = self.mock_config() [all …]
|