Test `process_json` for correct output on JSON input. Test for simple dict with list.
()
| 24 | |
| 25 | |
| 26 | def 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 | |
| 39 | def test_process_json_deep_dict() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…