Output sections which should be printed after description and before return value
(schema)
| 491 | |
| 492 | |
| 493 | def generate_body(schema): |
| 494 | """Output sections which should be printed after description and before return value""" |
| 495 | # Insert extra line between description and next section with this flag |
| 496 | first_matching_key = True |
| 497 | # Only add a newline if at least there is one body key found |
| 498 | body_key_found = False |
| 499 | for key in BODY_KEY_SEQUENCE: |
| 500 | if key not in schema: |
| 501 | continue |
| 502 | body_key_found = True |
| 503 | output_title(key.replace('_', ' ').upper(), '-', 1 if first_matching_key else 2) |
| 504 | first_matching_key = False |
| 505 | outputs(schema[key], '\n') |
| 506 | if body_key_found: |
| 507 | output('\n') |
| 508 | |
| 509 | |
| 510 | def generate_footer(schema, name): |
no test coverage detected