mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	middleware: Pass unhandled API exceptions through to the test suite.
This results in more useful stack traces in failing tests. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							2b35abba5d
						
					
				
				
					commit
					345ed1d09d
				
			@@ -22,7 +22,7 @@ class TestIntegrationsDevPanel(ZulipTestCase):
 | 
			
		||||
            "custom_headers": "{}",
 | 
			
		||||
            "is_json": "true",
 | 
			
		||||
        }
 | 
			
		||||
        with self.assertLogs(level="ERROR") as logs:
 | 
			
		||||
        with self.assertLogs(level="ERROR") as logs, self.settings(TEST_SUITE=False):
 | 
			
		||||
            response = self.client_post(target_url, data)
 | 
			
		||||
 | 
			
		||||
            self.assertEqual(response.status_code, 500)  # Since the response would be forwarded.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user