tests: Fix linter error in test_management_commands.

This commit is contained in:
Tim Abbott
2019-03-13 14:06:46 -07:00
parent 49680a4503
commit 4694de31c5

View File

@@ -225,8 +225,9 @@ class TestSendWebhookFixtureMessage(TestCase):
get_fixture_as_json_mock.return_value = "{}"
improper_headers = '{"X-Custom - Headers": "some_val"}'
with self.assertRaises(SystemExit) as se:
call_command(self.COMMAND_NAME, fixture=self.fixture_path, url=self.url, custom_headers=improper_headers)
with self.assertRaises(SystemExit):
call_command(self.COMMAND_NAME, fixture=self.fixture_path, url=self.url,
custom_headers=improper_headers)
parse_headers_mock.assert_called_once_with(improper_headers)