1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-19 12:24:05 +00:00

adjust tests

This commit is contained in:
J. Nick Koston 2023-11-21 00:14:27 +01:00
parent 6298361cc9
commit 2c3e576b0a
No known key found for this signature in database

View File

@ -258,9 +258,9 @@ def test_snake_case(text, expected):
"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"), ('foo_bar!"§$%&/()=?', "foo_bar___________"),
), ),
) )
def test_sanitize(text, expected): def test_sanitize(text, expected):