tests: Pass amount to Template.render as string.
render is required to convert the string to Decimal for historical design reasons. Passing the amount as a string verifies this behavior.
This commit is contained in:
		
							parent
							
								
									97d8f8fd06
								
							
						
					
					
						commit
						cc2b397801
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -23,7 +23,7 @@ def template_from(section_name, *args, **kwargs):
 | 
			
		|||
 | 
			
		||||
def template_vars(payee, amount, currency='USD', date=DATE, other_vars=None):
 | 
			
		||||
    call_vars = {
 | 
			
		||||
        'amount': decimal.Decimal(amount),
 | 
			
		||||
        'amount': amount,
 | 
			
		||||
        'currency': currency,
 | 
			
		||||
        'date': date,
 | 
			
		||||
        'payee': payee,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue