more test cases for key transformer

This commit is contained in:
Matthias Bisping 2022-03-31 16:35:12 +02:00
parent 4f94cbd68d
commit 0cefef4e15

View File

@ -14,9 +14,9 @@ def test_camel_case_key_formatter(snake_case_data, camel_case_data):
@pytest.fixture
def snake_case_data():
return {"a_key": {"key": None, "key_2": ["may_not_be_changed"]}, 2: {"yet_another_key": None}}
return {"a_key": {"key": None, "key_2": ["may_not_be_changed", (1, 2, 2.2)]}, 2: {"yet_another_key": 3, 4: "a"}}
@pytest.fixture
def camel_case_data():
return {"aKey": {"key": None, "key2": ["may_not_be_changed"]}, 2: {"yetAnotherKey": None}}
return {"aKey": {"key": None, "key2": ["may_not_be_changed", (1, 2, 2.2)]}, 2: {"yetAnotherKey": 3, 4: "a"}}