mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed incorrectly concatenated string in SimpleBlockTagTests.test_simple_block_tag_with_context_missing_content().
This commit is contained in:
		
				
					committed by
					
						 Sarah Boyce
						Sarah Boyce
					
				
			
			
				
	
			
			
			
						parent
						
							78fac1b047
						
					
				
				
					commit
					0f5b573d3d
				
			| @@ -514,9 +514,11 @@ class SimpleBlockTagTests(TagTestCase): | |||||||
|  |  | ||||||
|     def test_simple_block_tag_with_context_missing_content(self): |     def test_simple_block_tag_with_context_missing_content(self): | ||||||
|         # The 'content' parameter must be present when takes_context is True |         # The 'content' parameter must be present when takes_context is True | ||||||
|         msg = "'simple_block_tag_with_context_without_content' is decorated with " |         msg = ( | ||||||
|         "takes_context=True so it must have a first argument of 'context' and a " |             "'simple_block_tag_with_context_without_content' is decorated with " | ||||||
|         "second argument of 'content'" |             "takes_context=True so it must have a first argument of 'context' and a " | ||||||
|  |             "second argument of 'content'" | ||||||
|  |         ) | ||||||
|         with self.assertRaisesMessage(TemplateSyntaxError, msg): |         with self.assertRaisesMessage(TemplateSyntaxError, msg): | ||||||
|             self.engine.from_string( |             self.engine.from_string( | ||||||
|                 "{% load custom %}{% simple_block_tag_with_context_without_content %}" |                 "{% load custom %}{% simple_block_tag_with_context_without_content %}" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user