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,7 +176,8 @@ class TestSendWebhookFixtureMessage(TestCase):
|
|||
|
||||
client = client_mock()
|
||||
|
||||
call_command(self.COMMAND_NAME, fixture=self.fixture_path, url=self.url)
|
||||
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)
|
||||
self.assertTrue(open_mock.called)
|
||||
|
|
Loading…
Reference in New Issue