/dports/devel/py-openstacksdk/openstacksdk-0.60.0/openstack/tests/unit/ |
H A D | test_proxy_base.py | 24 self, mock_method, test_method, *, argument 28 with mock.patch(mock_method) as mocked: 96 mock_method, 118 mock_method, 130 mock_method="openstack.proxy.Proxy._get", argument 142 mock_method, 163 mock_method="openstack.proxy.Proxy._head", argument 173 mock_method, 195 mock_method, 223 mock_method, [all …]
|
/dports/databases/py-gdbm/Python-3.8.12/Lib/unittest/test/testmock/ |
H A D | testasync.py | 56 def test_async(mock_method): argument 62 def test_async(mock_method): argument 63 m = mock_method() 69 m = mock_method() 78 def test_async(mock_method): argument 85 def test_async(mock_method): argument 92 def test_async(mock_method): argument 125 m = mock_method() 184 def test_async(mock_method): argument 253 mock_method.reset_mock() [all …]
|
/dports/lang/python310/Python-3.10.1/Lib/unittest/test/testmock/ |
H A D | testasync.py | 59 def test_async(mock_method): argument 65 def test_async(mock_method): argument 66 m = mock_method() 72 m = mock_method() 81 def test_async(mock_method): argument 88 def test_async(mock_method): argument 95 def test_async(mock_method): argument 128 m = mock_method() 187 def test_async(mock_method): argument 260 mock_method.reset_mock() [all …]
|
/dports/lang/python311/Python-3.11.0a3/Lib/unittest/test/testmock/ |
H A D | testasync.py | 59 def test_async(mock_method): argument 65 def test_async(mock_method): argument 66 m = mock_method() 72 m = mock_method() 81 def test_async(mock_method): argument 88 def test_async(mock_method): argument 95 def test_async(mock_method): argument 128 m = mock_method() 186 def test_async(mock_method): argument 259 mock_method.reset_mock() [all …]
|
/dports/lang/python-tools/Python-3.8.12/Lib/unittest/test/testmock/ |
H A D | testasync.py | 56 def test_async(mock_method): argument 62 def test_async(mock_method): argument 63 m = mock_method() 69 m = mock_method() 78 def test_async(mock_method): argument 85 def test_async(mock_method): argument 92 def test_async(mock_method): argument 125 m = mock_method() 184 def test_async(mock_method): argument 253 mock_method.reset_mock() [all …]
|
/dports/lang/python38/Python-3.8.12/Lib/unittest/test/testmock/ |
H A D | testasync.py | 56 def test_async(mock_method): argument 62 def test_async(mock_method): argument 63 m = mock_method() 69 m = mock_method() 78 def test_async(mock_method): argument 85 def test_async(mock_method): argument 92 def test_async(mock_method): argument 125 m = mock_method() 184 def test_async(mock_method): argument 253 mock_method.reset_mock() [all …]
|
/dports/databases/py-sqlite3/Python-3.8.12/Lib/unittest/test/testmock/ |
H A D | testasync.py | 56 def test_async(mock_method): argument 62 def test_async(mock_method): argument 63 m = mock_method() 69 m = mock_method() 78 def test_async(mock_method): argument 85 def test_async(mock_method): argument 92 def test_async(mock_method): argument 125 m = mock_method() 184 def test_async(mock_method): argument 253 mock_method.reset_mock() [all …]
|
/dports/lang/python39/Python-3.9.9/Lib/unittest/test/testmock/ |
H A D | testasync.py | 59 def test_async(mock_method): argument 65 def test_async(mock_method): argument 66 m = mock_method() 72 m = mock_method() 81 def test_async(mock_method): argument 88 def test_async(mock_method): argument 95 def test_async(mock_method): argument 128 m = mock_method() 187 def test_async(mock_method): argument 260 mock_method.reset_mock() [all …]
|
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Lib/unittest/test/testmock/ |
H A D | testasync.py | 56 def test_async(mock_method): argument 62 def test_async(mock_method): argument 63 m = mock_method() 69 m = mock_method() 78 def test_async(mock_method): argument 85 def test_async(mock_method): argument 92 def test_async(mock_method): argument 125 m = mock_method() 184 def test_async(mock_method): argument 253 mock_method.reset_mock() [all …]
|
/dports/sysutils/py-salt/salt-3004.1/tests/pytests/unit/states/ |
H A D | test_rvm.py | 63 with patch.object(rvm, "_check_rvm") as mock_method: 64 mock_method.return_value = {"result": True, "changes": {}} 84 with patch.object(rvm, "_check_rvm") as mock_method: 85 mock_method.return_value = {"result": True} 95 with patch.object(rvm, "_check_rvm") as mock_method: 96 mock_method.return_value = {"result": True} 113 with patch.object(rvm, "_check_rvm") as mock_method: 114 mock_method.return_value = {"result": True}
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/telemetry/telemetry/internal/platform/ |
H A D | linux_platform_backend_unittest.py | 29 return_value=unbuntu_saucy_lsb_release_content) as mock_method: 32 mock_method.assert_called_once_with('/etc/lsb-release') 44 return_value=arch_os_release_content) as mock_method: 47 mock_method.assert_called_once_with('/usr/lib/os-release') 59 return_value=fedora_os_release_content) as mock_method: 62 mock_method.assert_called_once_with('/etc/os-release')
|
/dports/devel/py-oslotest/oslotest-4.4.1/oslotest/tests/unit/ |
H A D | test_mock_fixture.py | 50 mock_method = getattr(foo, method_name) 53 mock_method(mock.sentinel.a, mock.sentinel.b, mock.sentinel.c) 54 mock_method(mock.sentinel.a, mock.sentinel.b, mock.sentinel.c, 56 mock_method.assert_has_calls([ 63 self.assertRaises(TypeError, mock_method) 64 self.assertRaises(TypeError, mock_method, mock.sentinel.a) 65 self.assertRaises(TypeError, mock_method, a=mock.sentinel.a) 66 self.assertRaises(TypeError, mock_method, mock.sentinel.a,
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/protobuf/python/ |
H A D | mox.py | 1194 def AddMethod(self, mock_method): argument 1197 def MethodCalled(self, mock_method): argument 1214 def AddMethod(self, mock_method): argument 1221 self._methods.append(mock_method) 1223 def MethodCalled(self, mock_method): argument 1242 if method == mock_method: 1247 self._methods.remove(mock_method) 1276 def AddMethod(self, mock_method): argument 1283 self._methods.add(mock_method) 1285 def MethodCalled(self, mock_method): argument [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/protobuf/python/ |
H A D | mox.py | 1194 def AddMethod(self, mock_method): argument 1197 def MethodCalled(self, mock_method): argument 1214 def AddMethod(self, mock_method): argument 1221 self._methods.append(mock_method) 1223 def MethodCalled(self, mock_method): argument 1242 if method == mock_method: 1247 self._methods.remove(mock_method) 1276 def AddMethod(self, mock_method): argument 1283 self._methods.add(mock_method) 1285 def MethodCalled(self, mock_method): argument [all …]
|
/dports/devel/protobuf25/protobuf-2.5.0/python/ |
H A D | mox.py | 1194 def AddMethod(self, mock_method): argument 1197 def MethodCalled(self, mock_method): argument 1214 def AddMethod(self, mock_method): argument 1221 self._methods.append(mock_method) 1223 def MethodCalled(self, mock_method): argument 1242 if method == mock_method: 1247 self._methods.remove(mock_method) 1276 def AddMethod(self, mock_method): argument 1283 self._methods.add(mock_method) 1285 def MethodCalled(self, mock_method): argument [all …]
|
/dports/devel/ros-rosdep/rosdep-0.18.0/test/ |
H A D | test_rosdep_slackware.py | 92 def test(mock_method): argument 94 mock_method.return_value = [] 97 mock_method.return_value = ['a', 'b'] 162 def test(mock_method): argument 164 mock_method.return_value = [] 167 mock_method.return_value = ['a', 'b']
|
H A D | test_rosdep_gem.py | 76 def test_no_gem(mock_method): argument 77 mock_method.return_value = False 89 def test(mock_method, mock_is_gem_installed): argument 92 mock_method.return_value = [] 96 mock_method.return_value = ['a', 'b']
|
H A D | test_rosdep_pip.py | 75 def test_no_pip(mock_method): argument 76 mock_method.return_value = None 88 def test(mock_method, mock_get_pip_command): argument 91 mock_method.return_value = [] 95 mock_method.return_value = ['a', 'b']
|
H A D | test_rosdep_redhat.py | 83 def test(mock_method): argument 85 mock_method.return_value = [] 89 mock_method.return_value = ['a', 'b'] 113 def test(mock_method): argument 115 mock_method.return_value = [] 119 mock_method.return_value = ['a', 'b']
|
/dports/sysutils/py-salt/salt-3004.1/tests/unit/modules/ |
H A D | test_rvm.py | 134 with patch.object(rvm, "_rvm") as mock_method: 135 mock_method.return_value = list_output 157 with patch.object(rvm, "_rvm_do") as mock_method: 158 mock_method.return_value = output 187 with patch.object(rvm, "_rvm_do") as mock_method: 188 mock_method.return_value = output
|
/dports/mail/py-flanker/flanker-0.9.11/tests/addresslib/plugins/ |
H A D | yahoo_test.py | 39 with patch.object(address, 'mail_exchanger_lookup') as mock_method: 40 mock_method.side_effect = mock_exchanger_lookup 74 with patch.object(address, 'mail_exchanger_lookup') as mock_method: 75 mock_method.side_effect = mock_exchanger_lookup 99 with patch.object(address, 'mail_exchanger_lookup') as mock_method: 100 mock_method.side_effect = mock_exchanger_lookup 132 with patch.object(address, 'mail_exchanger_lookup') as mock_method: 133 mock_method.side_effect = mock_exchanger_lookup
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/telemetry/telemetry/internal/backends/chrome_inspector/ |
H A D | memory_backend_unittest.py | 27 'SyncRequest') as mock_method: 29 self.assertEqual(1, mock_method.call_count) 30 request = mock_method.call_args[0][0] 46 'SyncRequest') as mock_method: 48 self.assertEqual(1, mock_method.call_count) 49 request = mock_method.call_args[0][0]
|
/dports/mail/py-flanker/flanker-0.9.11/tests/addresslib/ |
H A D | validator_test.py | 100 with patch.object(address, 'mail_exchanger_lookup') as mock_method: 101 mock_method.side_effect = mock_exchanger_lookup 131 with patch.object(address, 'mail_exchanger_lookup') as mock_method: 132 mock_method.side_effect = mock_exchanger_lookup 165 with patch.object(address, 'mail_exchanger_lookup') as mock_method: 166 mock_method.side_effect = mock_exchanger_lookup 264 with patch.object(validate, 'mail_exchanger_lookup') as mock_method: 265 mock_method.side_effect = mock_exchanger_lookup 278 with patch.object(address, 'mail_exchanger_lookup') as mock_method: 279 mock_method.side_effect = mock_exchanger_lookup
|
/dports/devel/py-mox/mox-0.5.3/ |
H A D | mox.py | 1722 def AddMethod(self, mock_method): argument 1725 def MethodCalled(self, mock_method): argument 1742 def AddMethod(self, mock_method): argument 1749 self._methods.append(mock_method) 1751 def MethodCalled(self, mock_method): argument 1770 if method == mock_method: 1804 def AddMethod(self, mock_method): argument 1811 self._methods.add(mock_method) 1812 self._methods_left.add(mock_method) 1814 def MethodCalled(self, mock_method): argument [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/telemetry/third_party/mox3/mox3/ |
H A D | mox.py | 1945 def AddMethod(self, mock_method): argument 1948 def MethodCalled(self, mock_method): argument 1972 def AddMethod(self, mock_method): argument 1979 self._methods.append(mock_method) 1981 def MethodCalled(self, mock_method): argument 2001 if method == mock_method: 2037 def AddMethod(self, mock_method): argument 2044 self._methods.add(mock_method) 2045 self._methods_left.add(mock_method) 2047 def MethodCalled(self, mock_method): argument [all …]
|