MCPcopy Create free account
hub / github.com/ScrapeGraphAI/toonify / test_generate_with_custom_indent

Function test_generate_with_custom_indent

tests/test_structure_generator.py:125–139  ·  view source on GitHub ↗

Test generating structure with custom indentation.

()

Source from the content-addressed store, hash-verified

123
124
125def 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
142def test_generate_mixed_structure():

Callers

nothing calls this directly

Calls 1

generate_structureFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…