allow for underscore-only stuff in camel_to_snake, silly as that is

This commit is contained in:
Ian McEwen committed 2024-08-24 23:38:48 -07:00
1 parent df12b8a659
commit 84dff75399
1 file changed
+1 -1
+1 -1
View File
@@ -599,7 +599,7 @@ def test_roundtrip_snake_to_camel_camel_to_snake(a_string):
def test_fuzz_camel_to_snake(a_string):
"""Test that camel_to_snake produces outputs with underscores for multi-word camelcase"""
result = camel_to_snake(a_string)
assert "_" in result or result == a_string.lower()
assert "_" in result or result == a_string.lower().replace("_", "")
@given(st.text())
def test_fuzz_snake_to_camel(a_string):