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

Function test_generate_nested_structure

tests/test_structure_generator.py:21–39  ·  view source on GitHub ↗

Test generating a nested object structure.

()

Source from the content-addressed store, hash-verified

19
20
21def test_generate_nested_structure():
22 """Test generating a nested object structure."""
23 schema = {
24 "user": {
25 "id": "user identifier",
26 "profile": {
27 "name": "user name",
28 "email": "user email"
29 }
30 }
31 }
32
33 result = generate_structure(schema)
34
35 assert "user:" in result
36 assert "id: <user identifier>" in result
37 assert "profile:" in result
38 assert "name: <user name>" in result
39 assert "email: <user email>" in result
40
41
42def test_generate_array_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…