mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +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): | ||||
|         # The 'content' parameter must be present when takes_context is True | ||||
|         msg = "'simple_block_tag_with_context_without_content' is decorated with " | ||||
|         "takes_context=True so it must have a first argument of 'context' and a " | ||||
|         "second argument of 'content'" | ||||
|         msg = ( | ||||
|             "'simple_block_tag_with_context_without_content' is decorated with " | ||||
|             "takes_context=True so it must have a first argument of 'context' and a " | ||||
|             "second argument of 'content'" | ||||
|         ) | ||||
|         with self.assertRaisesMessage(TemplateSyntaxError, msg): | ||||
|             self.engine.from_string( | ||||
|                 "{% load custom %}{% simple_block_tag_with_context_without_content %}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user