mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Ensure names containing characters other than a-z A-Z 0-9 or _ are unique (#5810)
				
					
				
			This commit is contained in:
		| @@ -258,9 +258,9 @@ def test_snake_case(text, expected): | ||||
|     "text, expected", | ||||
|     ( | ||||
|         ("foo_bar", "foo_bar"), | ||||
|         ('!"§$%&/()=?foo_bar', "foo_bar"), | ||||
|         ('foo_!"§$%&/()=?bar', "foo_bar"), | ||||
|         ('foo_bar!"§$%&/()=?', "foo_bar"), | ||||
|         ('!"§$%&/()=?foo_bar', "___________foo_bar"), | ||||
|         ('foo_!"§$%&/()=?bar', "foo____________bar"), | ||||
|         ('foo_bar!"§$%&/()=?', "foo_bar___________"), | ||||
|     ), | ||||
| ) | ||||
| def test_sanitize(text, expected): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user