mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-10-30 23:47:30 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			248 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			248 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from ..str_converters import to_const
 | |
| 
 | |
| 
 | |
| def test_to_const():
 | |
|     assert to_const('snakes $1. on a "#plane') == "SNAKES_1_ON_A_PLANE"
 | |
| 
 | |
| 
 | |
| def test_to_const_unicode():
 | |
|     assert to_const("Skoða þetta unicode stöff") == "SKODA_THETTA_UNICODE_STOFF"
 |