mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[2.2.x] Simplified test_transform()s in db_functions.math.
Backport of 258110d6cd from master.
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							a9ce7e2bcd
						
					
				
				
					commit
					b150d99460
				
			| @@ -50,5 +50,5 @@ class CeilTests(TestCase): | ||||
|         with register_lookup(DecimalField, Ceil): | ||||
|             DecimalModel.objects.create(n1=Decimal('3.12'), n2=Decimal('0')) | ||||
|             DecimalModel.objects.create(n1=Decimal('1.25'), n2=Decimal('0')) | ||||
|             objs = DecimalModel.objects.filter(n1__ceil__gt=3) | ||||
|             self.assertQuerysetEqual(objs, [Decimal('3.12')], lambda a: a.n1) | ||||
|             obj = DecimalModel.objects.filter(n1__ceil__gt=3).get() | ||||
|             self.assertEqual(obj.n1, Decimal('3.12')) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user