Home
last modified time | relevance | path

Searched refs:message_mock (Results 1 – 20 of 20) sorted by relevance

/dports/devel/py-nbclient/nbclient-0.5.9/nbclient/tests/
H A Dtest_client.py748 assert message_mock.call_count == 1
763 assert message_mock.call_count == 2
777 assert message_mock.call_count == 2
805 assert message_mock.call_count == 3
818 message_mock.side_effect = Empty()
843 message_mock.side_effect = message_seq(list(message_mock.side_effect)[:-1])
852 assert message_mock.call_count >= 3
868 assert message_mock.call_count == 2
887 assert message_mock.call_count == 3
908 assert message_mock.call_count == 3
[all …]
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/misc/
H A Dtest_guiprocess.py126 assert not message_mock.messages
145 msgs = message_mock.messages
174 stdout_msg = message_mock.messages[-2]
175 stderr_msg = message_mock.messages[-1]
178 stdout_msg = message_mock.messages[0]
183 stderr_msg = message_mock.messages[0]
190 assert len(message_mock.messages) == msg_count
266 assert len(message_mock.messages) == 3
268 for msg in message_mock.messages)
292 for msg in message_mock.messages)
[all …]
H A Dtest_editor.py122 def test_unreadable(self, message_mock, editor, caplog, qtbot): argument
135 msg = message_mock.getmsg(usertypes.MessageLevel.error)
138 def test_unwritable(self, monkeypatch, message_mock, editor, argument
147 msg = message_mock.getmsg(usertypes.MessageLevel.error)
158 msg = message_mock.getmsg(usertypes.MessageLevel.error)
167 def test_backup(self, qtbot, message_mock): argument
175 msg = message_mock.getmsg(usertypes.MessageLevel.info)
186 def test_backup_no_content(self, qtbot, message_mock): argument
191 assert not message_mock.messages
193 def test_backup_error(self, qtbot, message_mock, mocker, caplog): argument
[all …]
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/browser/webengine/
H A Dtest_webenginedownloads.py120 def test_workaround(self, webengine_tab, message_mock, qtbot, argument
123 with qtbot.wait_signal(message_mock.got_question):
126 question = message_mock.get_question()
129 def test_explicit_filename(self, webengine_tab, message_mock, qtbot, argument
138 with qtbot.wait_signal(message_mock.got_question):
144 question = message_mock.get_question()
H A Dtest_spell.py30 def test_version(message_mock, caplog): argument
36 msg = message_mock.getmsg(usertypes.MessageLevel.warning)
H A Dtest_webenginesettings.py67 def test_non_existing_dict(config_stub, monkeypatch, message_mock, caplog, argument
76 msg = message_mock.getmsg(usertypes.MessageLevel.warning)
/dports/devel/py-taskflow/taskflow-4.6.3/taskflow/tests/unit/worker_based/
H A Dtest_server.py54 self.message_mock = mock.MagicMock(name='message')
59 self.master_mock.attach_mock(self.message_mock, 'message')
170 s._process_request(request, self.message_mock)
179 s._process_request(request, self.message_mock)
203 s._process_request(self.make_request(), self.message_mock)
218 self.message_mock.properties = {}
221 s._process_request(request, self.message_mock)
237 s._process_request(request, self.message_mock)
258 s._process_request(request, self.message_mock)
280 s._process_request(request, self.message_mock)
[all …]
H A Dtest_executor.py58 self.message_mock = mock.MagicMock(name='message')
59 self.message_mock.properties = {'correlation_id': self.task_uuid,
97 ex._process_response(response.to_dict(), self.message_mock)
110 ex._process_response(response.to_dict(), self.message_mock)
124 ex._process_response(response.to_dict(), self.message_mock)
138 ex._process_response(response.to_dict(), self.message_mock)
150 ex._process_response(response.to_dict(), self.message_mock)
155 self.message_mock.properties['correlation_id'] = '<unknown>'
159 ex._process_response(response.to_dict(), self.message_mock)
164 self.message_mock.properties = {'type': pr.RESPONSE}
[all …]
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/config/
H A Dtest_configcommands.py65 def test_get(self, config_stub, commands, message_mock, option): argument
72 msg = message_mock.getmsg(usertypes.MessageLevel.info)
143 def test_set_print(self, config_stub, commands, message_mock, pattern): argument
160 msg = message_mock.getmsg(usertypes.MessageLevel.info)
283 def test_set_toggle_print(self, commands, config_stub, message_mock): argument
289 msg = message_mock.getmsg(usertypes.MessageLevel.info)
627 def test_error(self, commands, config_stub, patch_editor, message_mock, argument
634 msg = message_mock.getmsg()
766 def test_bind_print(self, commands, config_stub, message_mock, argument
785 msg = message_mock.getmsg(usertypes.MessageLevel.info)
H A Dtest_configinit.py269 def test_temp_settings_invalid(self, caplog, init_patch, message_mock, argument
277 msg = message_mock.getmsg()
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/completion/
H A Dtest_histcategory.py145 def test_set_pattern_long(hist, message_mock, caplog, pattern): argument
150 msg = message_mock.getmsg(usertypes.MessageLevel.error)
262 def test_skip_duplicate_set(message_mock, caplog, hist): argument
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/api/
H A Dtest_cmdutils.py516 def test_deprecated(self, caplog, message_mock): argument
521 msg = message_mock.getmsg(usertypes.MessageLevel.warning)
524 def test_deprecated_name(self, caplog, message_mock): argument
536 msg = message_mock.getmsg(usertypes.MessageLevel.warning)
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/helpers/
H A Dmessagemock.py113 def message_mock(): function
/dports/net/ryu/ryu-4.26/ryu/tests/unit/lib/
H A Dtest_mrtlib.py167 message_mock = mock.MagicMock(spec=mrtlib.MrtMessage)
168 message_mock.serialize.return_value = body
171 message=message_mock,
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/components/
H A Dtest_braveadblock.py423 def test_corrupt_cache_handling(ad_blocker, message_mock, caplog): argument
429 msg = message_mock.getmsg(usertypes.MessageLevel.error)
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/utils/
H A Dtest_urlutils.py493 def test_invalid_url_error(message_mock, caplog, url, valid, has_err_string): argument
506 assert not message_mock.messages
512 msg = message_mock.getmsg(usertypes.MessageLevel.error)
H A Dtest_version.py1409 def test_pastebin_version(pbclient, message_mock, monkeypatch, qtbot): argument
1417 msg = message_mock.getmsg(usertypes.MessageLevel.info)
1440 def test_pastebin_version_error(pbclient, caplog, message_mock, monkeypatch): argument
1451 msg = message_mock.getmsg(usertypes.MessageLevel.error)
H A Dtest_utils.py765 config_stub, message_mock, caplog): argument
768 msg = message_mock.getmsg(usertypes.MessageLevel.error)
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/
H A Dconftest.py37 from helpers.messagemock import message_mock
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/browser/
H A Dtest_history.py187 def test_error(self, monkeypatch, web_history, message_mock, caplog, argument
202 msg = message_mock.getmsg(usertypes.MessageLevel.error)