mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	tests: Change some assertTrue usage where assertEqual was meant.
These were typos, causing the asserts to pass always, because the syntax was meant for assertEqual.
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							1f982f68d2
						
					
				
				
					commit
					acfb378245
				
			| @@ -105,8 +105,8 @@ class WorkerTest(ZulipTestCase): | ||||
|                     user_profile = user.id, | ||||
|                     client = get_client('ios') | ||||
|                 ) | ||||
|                 self.assertTrue(len(activity_records), 1) | ||||
|                 self.assertTrue(activity_records[0].count, 1) | ||||
|                 self.assertEqual(len(activity_records), 1) | ||||
|                 self.assertEqual(activity_records[0].count, 1) | ||||
|  | ||||
|         # Now process the event a second time and confirm count goes | ||||
|         # up to 2.  Ideally, we'd use an event with a slightly never | ||||
| @@ -124,8 +124,8 @@ class WorkerTest(ZulipTestCase): | ||||
|                     user_profile = user.id, | ||||
|                     client = get_client('ios') | ||||
|                 ) | ||||
|                 self.assertTrue(len(activity_records), 1) | ||||
|                 self.assertTrue(activity_records[0].count, 2) | ||||
|                 self.assertEqual(len(activity_records), 1) | ||||
|                 self.assertEqual(activity_records[0].count, 2) | ||||
|  | ||||
|     def test_missed_message_worker(self) -> None: | ||||
|         cordelia = self.example_user('cordelia') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user