First working version of JSON sequence diagram generator

This commit is contained in:
Bartek Kryza
2023-03-19 18:30:00 +01:00
parent e620c86f31
commit f0497e934d
42 changed files with 1165 additions and 56 deletions
+9
View File
@@ -68,3 +68,12 @@ with open(r'tests/test_cases.yaml') as f:
copyfile(f'debug/tests/puml/{diagram_name}.svg',
f'docs/test_cases/{diagram_name}.svg')
tc.write(f'![{diagram_name}](./{diagram_name}.svg "{test_case["title"]}")\n')
tc.write("## Generated JSON models\n")
for diagram_name, _ in config_dict['diagrams'].items():
if os.path.exists(f'debug/tests/puml/{diagram_name}.json'):
with open(f'debug/tests/puml/{diagram_name}.json') as f:
contents = f.read()
tc.write("```json\n")
tc.write(contents)
tc.write("\n```\n")