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

Function test_generate_simple_structure

tests/test_structure_generator.py:6–18  ·  view source on GitHub ↗

Test generating a simple object structure.

()

Source from the content-addressed store, hash-verified

4
5
6def test_generate_simple_structure():
7 """Test generating a simple object structure."""
8 schema = {
9 "name": "name of the person",
10 "age": "age of the person",
11 "occupation": "job description of the person"
12 }
13
14 result = generate_structure(schema)
15
16 assert "name: <name of the person>" in result
17 assert "age: <age of the person>" in result
18 assert "occupation: <job description of the person>" in result
19
20
21def test_generate_nested_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…