/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/ |
H A D | test_user.py | 27 client = mocker.Mock() 37 client = mocker.Mock() 51 client = mocker.Mock() 73 client = mocker.Mock() 86 client = mocker.Mock() 95 client = mocker.Mock() 112 client = mocker.Mock() 126 client = mocker.Mock() 137 client = mocker.Mock() 160 client = mocker.Mock() [all …]
|
/dports/devel/py-pytest-mock/pytest-mock-1.10.4/ |
H A D | test_pytest_mock.py | 72 mocker.stopall() 86 return mocker.patch("os.remove"), mocker.patch("os.listdir") 90 r = mocker.patch.multiple("os", remove=mocker.DEFAULT, listdir=mocker.DEFAULT) 104 mock_fs(mocker) 107 mocker.resetall() 108 mocker.stopall() 119 mocker.stopall() 131 mocker.resetall() 189 mocker.resetall() 255 calls = [mocker.call(foo, arg=10), mocker.call(other, arg=10)] [all …]
|
/dports/sysutils/ansible2/ansible-2.9.27/test/units/module_utils/basic/ |
H A D | test_atomic_move.py | 21 def atomic_am(am, mocker): argument 22 am.selinux_enabled = mocker.MagicMock() 23 am.selinux_context = mocker.MagicMock() 26 am._unsafe_writes = mocker.MagicMock() 32 def atomic_mocks(mocker, monkeypatch): argument 35 'chmod': mocker.patch('os.chmod'), 36 'chown': mocker.patch('os.chown'), 37 'close': mocker.patch('os.close'), 43 'stat': mocker.patch('os.stat'), 65 def fake_stat(mocker): argument [all …]
|
H A D | test_set_mode_if_different.py | 33 def mock_stats(mocker): argument 34 mock_stat1 = mocker.MagicMock() 36 mock_stat2 = mocker.MagicMock() 49 def mock_lchmod(mocker): argument 78 mocker.patch('os.path.exists', return_value=True) 97 mocker.patch('os.path.exists', return_value=True) 149 mocker.resetall() 150 mocker.stopall() 167 mock_lstat = mocker.MagicMock() 182 mocker.resetall() [all …]
|
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/module_utils/basic/ |
H A D | test_atomic_move.py | 21 def atomic_am(am, mocker): argument 22 am.selinux_enabled = mocker.MagicMock() 23 am.selinux_context = mocker.MagicMock() 26 am._unsafe_writes = mocker.MagicMock() 32 def atomic_mocks(mocker, monkeypatch): argument 35 'chmod': mocker.patch('os.chmod'), 36 'chown': mocker.patch('os.chown'), 37 'close': mocker.patch('os.close'), 43 'stat': mocker.patch('os.stat'), 65 def fake_stat(mocker): argument [all …]
|
H A D | test_set_mode_if_different.py | 33 def mock_stats(mocker): argument 34 mock_stat1 = mocker.MagicMock() 36 mock_stat2 = mocker.MagicMock() 49 def mock_lchmod(mocker): argument 78 mocker.patch('os.path.exists', return_value=True) 97 mocker.patch('os.path.exists', return_value=True) 156 mocker.resetall() 157 mocker.stopall() 174 mock_lstat = mocker.MagicMock() 189 mocker.resetall() [all …]
|
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/module_utils/basic/ |
H A D | test_atomic_move.py | 21 def atomic_am(am, mocker): argument 22 am.selinux_enabled = mocker.MagicMock() 23 am.selinux_context = mocker.MagicMock() 26 am._unsafe_writes = mocker.MagicMock() 32 def atomic_mocks(mocker, monkeypatch): argument 35 'chmod': mocker.patch('os.chmod'), 36 'chown': mocker.patch('os.chown'), 37 'close': mocker.patch('os.close'), 43 'stat': mocker.patch('os.stat'), 65 def fake_stat(mocker): argument [all …]
|
H A D | test_set_mode_if_different.py | 33 def mock_stats(mocker): argument 34 mock_stat1 = mocker.MagicMock() 36 mock_stat2 = mocker.MagicMock() 49 def mock_lchmod(mocker): argument 78 mocker.patch('os.path.exists', return_value=True) 97 mocker.patch('os.path.exists', return_value=True) 149 mocker.resetall() 150 mocker.stopall() 167 mock_lstat = mocker.MagicMock() 182 mocker.resetall() [all …]
|
/dports/devel/py-molecule/molecule-2.22/test/unit/ |
H A D | conftest.py | 168 def patched_print_debug(mocker): argument 173 def patched_logger_info(mocker): argument 178 def patched_logger_out(mocker): argument 183 def patched_logger_warn(mocker): argument 188 def patched_logger_error(mocker): argument 198 def patched_logger_success(mocker): argument 203 def patched_run_command(mocker): argument 224 def patched_yamllint(mocker): argument 229 def patched_flake8(mocker): argument 234 def patched_ansible_galaxy(mocker): argument [all …]
|
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/cli/galaxy/ |
H A D | test_execute_list_collection.py | 46 def mock_collection_objects(mocker): argument 56 mocker.Mock(), 65 mocker.Mock(), 74 mocker.Mock(), 83 mocker.Mock(), 96 def mock_from_path(mocker): argument 104 mocker.Mock(), 113 mocker.Mock(), 124 mocker.Mock(), 173 mocker.patch('os.path.exists', path_exists) [all …]
|
H A D | test_collection_extract_tar.py | 15 def fake_tar_obj(mocker): argument 16 m_tarfile = mocker.Mock() 17 m_tarfile.type = mocker.Mock(return_value=b'99') 18 m_tarfile.SYMTYPE = mocker.Mock(return_value=b'22') 23 def test_extract_tar_member_trailing_sep(mocker): argument 24 m_tarfile = mocker.Mock() 33 def test_extract_tar_member_no_trailing_sep(mocker): argument 34 m_tarfile = mocker.Mock() 44 mocker.patch('os.makedirs', return_value=None) 46 mocker.patch('os.path.isdir', return_value=True) [all …]
|
/dports/www/py-aiohttp/aiohttp-3.7.4.post0/tests/ |
H A D | test_web_cli.py | 6 def test_entry_func_empty(mocker) -> None: argument 16 def test_entry_func_only_module(mocker) -> None: argument 26 def test_entry_func_only_function(mocker) -> None: argument 36 def test_entry_func_only_separator(mocker) -> None: argument 46 def test_entry_func_relative_module(mocker) -> None: argument 56 def test_entry_func_non_existent_module(mocker) -> None: argument 85 mocker.patch("aiohttp.web.import_module") 97 def test_entry_func_call(mocker) -> None: argument 98 mocker.patch("aiohttp.web.run_app") 114 def test_running_application(mocker) -> None: argument [all …]
|
/dports/textproc/lookatme/lookatme-2.3.2/tests/ |
H A D | test_markdown.py | 32 def test_headings(mocker): argument 58 def test_table(mocker): argument 89 def test_lists(mocker): argument 133 def test_lists_with_newline(mocker): argument 166 def test_numbered_lists(mocker): argument 225 def test_hrule(mocker): argument 249 def test_block_quote(mocker): argument 279 def test_code(mocker): argument 303 def test_empty_codeblock(mocker): argument 318 def test_code_yaml(mocker): argument [all …]
|
/dports/devel/py-python-gilt/python-gilt-1.2.2/test/ |
H A D | test_git.py | 68 def test_overlay(mocker, temp_dir): argument 84 mocker.Mock( 99 def test_overlay_existing_directory(mocker, temp_dir): argument 111 mocker.Mock( 122 def patched_run_command(mocker): argument 123 return mocker.patch('gilt.util.run_command') 128 mocker.patch('gilt.git._has_tag').return_value = False 143 def test_get_version_has_tag(mocker, patched_run_command): argument 145 mocker.patch('gilt.git._has_tag').return_value = True 180 mocker.call(sh.git.bake('fetch'), debug=False), [all …]
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/general/tests/unit/plugins/modules/cloud/xenserver/ |
H A D | test_xenserver_guest_powerstate.py | 136 mocked_set_vm_power_state = mocker.patch( 140 mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True) 181 mocked_set_vm_power_state = mocker.patch( 184 mocked_wait_for_vm_ip_address = mocker.patch( 188 mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True) 227 mocked_set_vm_power_state = mocker.patch( 230 mocked_wait_for_vm_ip_address = mocker.patch( 234 mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True) 272 mocked_set_vm_power_state = mocker.patch( 275 mocked_wait_for_vm_ip_address = mocker.patch( [all …]
|
/dports/sysutils/ansible2/ansible-2.9.27/test/units/modules/cloud/xenserver/ |
H A D | test_xenserver_guest_powerstate.py | 138 mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True) 147 mocker.patch('ansible.module_utils.xenserver.get_xenserver_version', return_value=[7, 2, 0]) 182 mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True) 191 mocker.patch('ansible.module_utils.xenserver.get_xenserver_version', return_value=[7, 2, 0]) 220 mocked_set_vm_power_state = mocker.patch( 223 mocked_wait_for_vm_ip_address = mocker.patch( 227 mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True) 236 mocker.patch('ansible.module_utils.xenserver.get_xenserver_version', return_value=[7, 2, 0]) 264 mocked_set_vm_power_state = mocker.patch( 267 mocked_wait_for_vm_ip_address = mocker.patch( [all …]
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/sensu/sensu_go/tests/unit/plugins/module_utils/ |
H A D | test_client.py | 23 def test_using_valid_token(self, mocker): argument 78 def test_valid_version(self, mocker): argument 88 get = mocker.patch.object(c, "get") 221 def test_get(self, mocker): argument 225 c.request = mocker.Mock() 233 def test_put(self, mocker): argument 237 c.request = mocker.Mock() 245 def test_delete(self, mocker): argument 249 c.request = mocker.Mock() 257 def test_valid_creds(self, mocker): argument [all …]
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/ |
H A D | test_dellemc_idrac_storage_volume.py | 30 def idrac_storage_volume_mock(self, mocker): argument 48 def idrac_file_manager_storage_volume_mock(self, mocker): argument 50 file_manager_obj = mocker.patch( 59 mocker): argument 75 mocker): argument 89 mocker): argument 201 mocker): argument 221 mocker): argument 230 mocker): argument 268 mocker): argument [all …]
|
H A D | test_idrac_user.py | 36 def idrac_connection_user_mock(self, mocker, idrac_user_mock): argument 129 mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.export_scp", 145 mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.export_scp", 164 mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", 187 mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", 208 mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", 230 mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", 252 mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", 274 mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", 295 mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", [all …]
|
/dports/devel/py-cookiecutter/cookiecutter-1.7.3/tests/zipfile/ |
H A D | test_unzip.py | 60 mocker.patch( 77 mocker.patch( 113 mocker.patch( 116 mocker.patch( 132 mocker.patch( 146 mocker.patch( 160 mocker.patch( 181 mocker.patch( 206 mocker.patch( 231 mocker.patch( [all …]
|
/dports/devel/py-gs_api_client/gs_api_client-1.1.1/tests/ |
H A D | test_sync_request.py | 4 def test_get_servers(client, mocker): argument 13 mocker.ANY, 14 mocker.ANY, 15 mocker.ANY, 16 body=mocker.ANY, 17 post_params=mocker.ANY, 18 files=mocker.ANY, 19 response_type=mocker.ANY, 20 auth_settings=mocker.ANY, 21 async_req=mocker.ANY, [all …]
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/unittests/framework/ |
H A D | test_core.py | 146 mocker.patch('framework.core.__file__', 204 def test_exists_fail(self, mocker, tmpdir): argument 208 mocker.patch('framework.core.os.stat', mocker.Mock(side_effect=OSError)) 216 mocker.patch('framework.core.os.stat', 227 mocker.patch('framework.core.os.stat', mocker.Mock()) 228 makedirs = mocker.patch( 236 def test_makedirs_fail(self, mocker, tmpdir): argument 239 mocker.patch('framework.core.os.makedirs', 245 def test_handler(self, mocker, tmpdir): argument 252 mocker.patch('framework.core.os.stat', [all …]
|
/dports/devel/py-jupyter-packaging/jupyter_packaging-0.11.1/tests/ |
H A D | test_core_functions.py | 25 def test_npm_builder(mocker): argument 27 run = mocker.patch('jupyter_packaging.setupbase.run') 38 def test_npm_build_skip(mocker): argument 40 run = mocker.patch('jupyter_packaging.setupbase.run') 48 def test_npm_builder_yarn(tmp_path, mocker): argument 50 run = mocker.patch('jupyter_packaging.setupbase.run') 61 def test_npm_builder_missing_yarn(tmp_path, mocker): argument 63 run = mocker.patch('jupyter_packaging.setupbase.run') 74 def test_npm_builder_not_stale(tmp_path, mocker): argument 76 run = mocker.patch('jupyter_packaging.setupbase.run') [all …]
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/hrobot/tests/unit/plugins/modules/ |
H A D | test_firewall.py | 40 def test_absent_idempotency(self, mocker): argument 101 def test_absent_changed(self, mocker): argument 186 def test_present_idempotency(self, mocker): argument 215 def test_present_changed(self, mocker): argument 383 def test_port_idempotency(self, mocker): argument 414 def test_port_changed(self, mocker): argument 541 def test_wait_get(self, mocker): argument 586 def test_wait_get_timeout(self, mocker): argument 627 def test_nowait_get(self, mocker): argument 654 def test_wait_update(self, mocker): argument [all …]
|
/dports/sysutils/ansible2/ansible-2.9.27/test/units/cli/galaxy/ |
H A D | test_collection_extract_tar.py | 15 def fake_tar_obj(mocker): argument 16 m_tarfile = mocker.Mock() 17 m_tarfile.type = mocker.Mock(return_value=b'99') 18 m_tarfile.SYMTYPE = mocker.Mock(return_value=b'22') 23 def test_extract_tar_member_trailing_sep(mocker): argument 24 m_tarfile = mocker.Mock() 33 def test_extract_tar_member_no_trailing_sep(mocker): argument 34 m_tarfile = mocker.Mock() 44 mocker.patch('os.makedirs', return_value=None) 46 mocker.patch('os.path.isdir', return_value=True) [all …]
|