Home
last modified time | relevance | path

Searched refs:mock_list (Results 1 – 24 of 24) sorted by relevance

/dports/www/py-postorius/postorius-1.3.5/src/postorius/tests/
H A Dtest_auth_decorators.py72 self.mock_list = create_mock_list(dict(
79 mock_get_list.return_value = self.mock_list
89 mock_get_list.return_value = self.mock_list
105 mock_get_list.return_value = self.mock_list
118 mock_get_list.return_value = self.mock_list
137 self.mock_list = create_mock_list(dict(
144 mock_get_list.return_value = self.mock_list
154 mock_get_list.return_value = self.mock_list
170 mock_get_list.return_value = self.mock_list
183 mock_get_list.return_value = self.mock_list
[all …]
/dports/devel/py-openstacksdk/openstacksdk-0.60.0/openstack/tests/unit/baremetal/v1/
H A Dtest_proxy.py45 def test_chassis_detailed(self, mock_list): argument
47 self.assertIs(result, mock_list.return_value)
51 def test_chassis_not_detailed(self, mock_list): argument
53 self.assertIs(result, mock_list.return_value)
77 def test_nodes_detailed(self, mock_list): argument
79 self.assertIs(result, mock_list.return_value)
83 def test_nodes_not_detailed(self, mock_list): argument
85 self.assertIs(result, mock_list.return_value)
121 def test_ports_detailed(self, mock_list): argument
127 def test_ports_not_detailed(self, mock_list): argument
[all …]
/dports/sysutils/py-salt/salt-3004.1/tests/pytests/unit/states/
H A Dtest_bower.py57 mock_list = MagicMock(return_value={"underscore": {}})
61 bower.__salt__, {"bower.list": mock_list, "bower.uninstall": mock_uninstall}
79 mock_list = MagicMock(return_value={"underscore": {}})
83 bower.__salt__, {"bower.list": mock_list, "bower.uninstall": mock_uninstall}
200 mock_list = MagicMock(return_value={})
204 bower.__salt__, {"bower.list": mock_list, "bower.install": mock_install}
221 mock_list = MagicMock(return_value={})
225 bower.__salt__, {"bower.list": mock_list, "bower.install": mock_install}
242 mock_list = MagicMock(return_value={})
246 bower.__salt__, {"bower.list": mock_list, "bower.install": mock_install}
H A Dtest_win_servermanager.py15 mock_list = MagicMock(
43 "win_servermanager.list_installed": mock_list,
78 mock_list = MagicMock(
106 "win_servermanager.list_installed": mock_list,
H A Dtest_npm.py142 mock_list = MagicMock(return_value=["~/.npm", "~/.npm/{}/".format(name)])
157 mock_data = {"npm.cache_list": mock_list, "npm.cache_clean": MagicMock()}
190 "npm.cache_list": mock_list,
/dports/net/py-python-heatclient/python-heatclient-2.4.0/heatclient/tests/unit/
H A Dtest_resource_types.py81 with mock.patch.object(manager, '_list') as mock_list:
82 mock_list.return_value = None
84 self.assertEqual(1, mock_list.call_count)
85 url, param = mock_list.call_args[0]
H A Dtest_stacks.py192 def mock_list(*args, **kwargs): function
201 manager._list.side_effect = mock_list
292 def mock_list(arg_url, arg_response_key): function
317 manager._list.side_effect = mock_list
/dports/sysutils/py-salt/salt-3004.1/tests/unit/states/
H A Dtest_glusterfs.py104 mock_list = MagicMock()
112 "glusterfs.list_volumes": mock_list,
118 mock_list.return_value = [name]
155 mock_list.return_value = []
169 mock_list.side_effect = [[], [name]]
182 mock_list.side_effect = [[], [name]]
189 mock_list.side_effect = None
190 mock_list.return_value = []
/dports/devel/py-doit/doit-0.31.1/tests/
H A Dtest_doit_cmd.py37 mock_list = Mock()
38 monkeypatch.setattr(List, "execute", mock_list)
40 assert 1 == mock_list.call_count
/dports/devel/py-os-brick/os-brick-5.1.0/os_brick/tests/initiator/
H A Dtest_connector.py86 mock_list = []
97 mock_list.append(patched)
103 for item in mock_list:
/dports/sysutils/py-salt/salt-3004.1/tests/unit/modules/
H A Dtest_parallels.py232 mock_list = MagicMock(return_value="Name: {}\nState: running".format(name))
233 with patch.object(parallels, "list_vms", mock_list):
237 mock_list = MagicMock(return_value="Name: {}\nState: running".format(name))
238 with patch.object(parallels, "list_vms", mock_list):
/dports/net-mgmt/crmsh/crmsh-4.3.1/test/unittests/
H A Dtest_bootstrap.py1905 mock_error, mock_qdevice, mock_hostname, mock_confirm, mock_this_node, mock_list): argument
1911 mock_list.return_value = ["node1", "node3"]
1937 mock_list, mock_remove): argument
1943 mock_list.return_value = ["node1", "node2"]
1959 def test_remove_self_other_nodes(self, mock_list, mock_ext, mock_error): argument
1960 mock_list.return_value = ["node1", "node2"]
1968 mock_list.assert_called_once_with(include_remote_nodes=False)
1976 def test_remove_self_rm_failed(self, mock_list, mock_stop_service, mock_invoke, mock_error): argument
1977 mock_list.return_value = ["node1"]
1985 mock_list.assert_called_once_with(include_remote_nodes=False)
/dports/devel/py-asciimatics/asciimatics-1.13.0/tests/
H A Dtest_widgets.py1911 def test_file_browser_stat_err(self, mock_list, mock_stat): argument
1919 mock_list.return_value = ["A Directory", "A File", "A Lnk"]
1946 def test_file_browser_list_err(self, mock_list): argument
1954 mock_list.side_effect = OSError("Fake error")
1986 def test_file_browser(self, mock_list, mock_stat, mock_lstat, mock_dir, mock_link, argument
1995mock_list.return_value = ["A Directory", "A File", "A Lnk", str(b"oo\xcc\x88o\xcc\x88O\xcc\x88.txt…
2079 def test_file_filter(self, mock_list, mock_stat, mock_lstat, mock_dir, mock_link, argument
2088mock_list.return_value = ["A Directory", "A File", "A Lnk", str(b"oo\xcc\x88o\xcc\x88O\xcc\x88.txt…
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/storage/ndb/plugin/
H A Dha_ndb_ddl_fk.cc668 List<char> &mock_list) { in build_mock_list() argument
695 mock_list.push_back(thd_strdup(m_thd, fk.getParentTable())); in build_mock_list()
1221 List<char> &mock_list) { in ndb_fk_util_build_list() argument
1223 return fk_util.build_mock_list(dict, table, mock_list); in ndb_fk_util_build_list()
/dports/devel/py-openstacksdk/openstacksdk-0.60.0/openstack/tests/unit/orchestration/v1/
H A Dtest_proxy.py265 def test_resources_stack_not_found(self, mock_list, mock_find): argument
/dports/databases/percona57-server/percona-server-5.7.36-39/sql/
H A Dha_ndb_ddl_fk.cc864 const NdbDictionary::Table* table, List<char> &mock_list) in build_mock_list() argument
895 mock_list.push_back(thd_strdup(m_thd, fk.getParentTable())); in build_mock_list()
1138 const NdbDictionary::Table* table, List<char> &mock_list) in ndb_fk_util_build_list() argument
1141 return fk_util.build_mock_list(dict, table, mock_list); in ndb_fk_util_build_list()
/dports/databases/mysqlwsrep57-server/mysql-wsrep-wsrep_5.7.35-25.27/sql/
H A Dha_ndb_ddl_fk.cc864 const NdbDictionary::Table* table, List<char> &mock_list) in build_mock_list() argument
895 mock_list.push_back(thd_strdup(m_thd, fk.getParentTable())); in build_mock_list()
1138 const NdbDictionary::Table* table, List<char> &mock_list) in ndb_fk_util_build_list() argument
1141 return fk_util.build_mock_list(dict, table, mock_list); in ndb_fk_util_build_list()
/dports/databases/percona57-client/percona-server-5.7.36-39/sql/
H A Dha_ndb_ddl_fk.cc864 const NdbDictionary::Table* table, List<char> &mock_list) in build_mock_list() argument
895 mock_list.push_back(thd_strdup(m_thd, fk.getParentTable())); in build_mock_list()
1138 const NdbDictionary::Table* table, List<char> &mock_list) in ndb_fk_util_build_list() argument
1141 return fk_util.build_mock_list(dict, table, mock_list); in ndb_fk_util_build_list()
/dports/databases/mysql57-client/mysql-5.7.36/sql/
H A Dha_ndb_ddl_fk.cc864 const NdbDictionary::Table* table, List<char> &mock_list) in build_mock_list() argument
895 mock_list.push_back(thd_strdup(m_thd, fk.getParentTable())); in build_mock_list()
1138 const NdbDictionary::Table* table, List<char> &mock_list) in ndb_fk_util_build_list() argument
1141 return fk_util.build_mock_list(dict, table, mock_list); in ndb_fk_util_build_list()
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/sql/
H A Dha_ndb_ddl_fk.cc864 const NdbDictionary::Table* table, List<char> &mock_list) in build_mock_list() argument
895 mock_list.push_back(thd_strdup(m_thd, fk.getParentTable())); in build_mock_list()
1138 const NdbDictionary::Table* table, List<char> &mock_list) in ndb_fk_util_build_list() argument
1141 return fk_util.build_mock_list(dict, table, mock_list); in ndb_fk_util_build_list()
/dports/databases/xtrabackup/percona-xtrabackup-2.4.21/sql/
H A Dha_ndb_ddl_fk.cc864 const NdbDictionary::Table* table, List<char> &mock_list) in build_mock_list() argument
895 mock_list.push_back(thd_strdup(m_thd, fk.getParentTable())); in build_mock_list()
1138 const NdbDictionary::Table* table, List<char> &mock_list) in ndb_fk_util_build_list() argument
1141 return fk_util.build_mock_list(dict, table, mock_list); in ndb_fk_util_build_list()
/dports/net/py-python-cinderclient/python-cinderclient-7.2.0/cinderclient/tests/unit/v3/
H A Dtest_shell.py488 def test_attachment_list_setattr(self, mock_list, mock_print): argument
492 mock_list.return_value = fake_attachment
/dports/misc/py-cinder/cinder-12.0.10/cinder/tests/unit/volume/drivers/
H A Dtest_dothill.py698 def test_terminate_connection(self, mock_list, mock_unmap): argument
700 mock_list.side_effect = ['yes']
/dports/devel/py-openstacksdk/openstacksdk-0.60.0/openstack/tests/unit/
H A Dtest_resource.py2834 as mock_list:
2840 mock_list.assert_called_once_with(mock.ANY)