mirror of https://github.com/zulip/zulip.git
test_management_commands: Add check for expected system exit.
This was missed in the recent improvements to send_webhook_fixture_message.
This commit is contained in:
parent
03d72a1cd6
commit
d1cb039c2c
|
@ -176,6 +176,7 @@ class TestSendWebhookFixtureMessage(TestCase):
|
|||
|
||||
client = client_mock()
|
||||
|
||||
with self.assertRaises(SystemExit):
|
||||
call_command(self.COMMAND_NAME, fixture=self.fixture_path, url=self.url)
|
||||
self.assertTrue(ujson_mock.dumps.called)
|
||||
self.assertTrue(ujson_mock.loads.called)
|
||||
|
|
Loading…
Reference in New Issue