mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	tests: Fix linter error in test_management_commands.
This commit is contained in:
		@@ -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)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user