mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	test_classes: Remove assert_max_length.
We should avoid this kind of assertions because they are not deterministic.
This commit is contained in:
		@@ -363,12 +363,6 @@ class ZulipTestCase(TestCase):
 | 
			
		||||
        return self.assertTrue(actual_count == count,
 | 
			
		||||
                               "len(%s) == %s, != %s" % (queries, actual_count, count))
 | 
			
		||||
 | 
			
		||||
    def assert_max_length(self, queries, count):
 | 
			
		||||
        # type: (Sized, int) -> None
 | 
			
		||||
        actual_count = len(queries)
 | 
			
		||||
        return self.assertTrue(actual_count <= count,
 | 
			
		||||
                               "len(%s) == %s, > %s" % (queries, actual_count, count))
 | 
			
		||||
 | 
			
		||||
    def assert_json_error_contains(self, result, msg_substring, status_code=400):
 | 
			
		||||
        # type: (HttpResponse, Text, int) -> None
 | 
			
		||||
        self.assertIn(msg_substring, self.get_json_error(result, status_code=status_code))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user