Promene u dizajnu dokumenata, controla, residual graph, residual tabele...

This commit is contained in:
2025-06-13 17:45:22 +02:00
parent fa734e5be9
commit aff66589e9
14 changed files with 711 additions and 2132 deletions

View File

@@ -32,14 +32,14 @@ class TestProcessors(unittest.TestCase):
def test_render_universal_segment(self):
segment = self.template_segments[0]
result = render_universal_segment(segment, self.context_data)
self.assertIn("<h2 style=", result)
self.assertIn("<h3 style=", result)
self.assertIn("<h2>", result)
self.assertIn("<h3>", result)
self.assertIn("<ul style=", result)
self.assertIn("<div><p>Custom HTML content with Example Corp</p></div>", result)
def test_render_template(self):
result = render_template(self.template_segments, self.context_data)
self.assertIn('<div class="segment example_segment">', result)
self.assertIn('<div class="section">', result)
self.assertIn("Main Title", result)
self.assertIn("Subtitle 1", result)
self.assertIn("Custom HTML content with Example Corp", result)
@@ -47,7 +47,7 @@ class TestProcessors(unittest.TestCase):
def test_empty_segment(self):
segment = {"segment_type": "empty_segment", "content": []}
result = render_universal_segment(segment, self.context_data)
self.assertEqual(result, "")
self.assertEqual(result, '<div class="section">\n</div>')
def test_missing_html(self):
segment = {