MCPcopy
hub / github.com/cookiecutter/cookiecutter / test_process_json_valid_json

Function test_process_json_valid_json

tests/test_read_user_dict.py:26–36  ·  view source on GitHub ↗

Test `process_json` for correct output on JSON input. Test for simple dict with list.

()

Source from the content-addressed store, hash-verified

24
25
26def test_process_json_valid_json() -> None:
27 """Test `process_json` for correct output on JSON input.
28
29 Test for simple dict with list.
30 """
31 user_value = '{"name": "foobar", "bla": ["a", 1, "b", false]}'
32
33 assert process_json(user_value) == {
34 'name': 'foobar',
35 'bla': ['a', 1, 'b', False],
36 }
37
38
39def test_process_json_deep_dict() -> None:

Callers

nothing calls this directly

Calls 1

process_jsonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…