Test generating structure with custom indentation.
()
| 123 | |
| 124 | |
| 125 | def test_generate_with_custom_indent(): |
| 126 | """Test generating structure with custom indentation.""" |
| 127 | schema = { |
| 128 | "user": { |
| 129 | "name": "user name" |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | result = generate_structure(schema, {"indent": 4}) |
| 134 | |
| 135 | lines = result.split("\n") |
| 136 | # First level should have no indent |
| 137 | assert lines[0] == "user:" |
| 138 | # Second level should have 4 spaces |
| 139 | assert lines[1].startswith(" ") |
| 140 | |
| 141 | |
| 142 | def test_generate_mixed_structure(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…