Spaces:
Runtime error

File size: 921 Bytes
c0e3412
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import unittest
import sys
import os

sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))

from cpptai.presentation import arrange_solution_simple


class TestPresentation(unittest.TestCase):
    def test_arrange_technical(self):
        text = "Alpha. Beta. Gamma."
        arranged = arrange_solution_simple(text, context="technical")
        self.assertIn("Solution Report", arranged)
        self.assertIn("Summary", arranged)
        self.assertIn("Key Points", arranged)
        self.assertIn("Conclusion", arranged)

    def test_arrange_executive(self):
        text = "Implement storage. Reduce costs. Evaluate SMRs."
        arranged = arrange_solution_simple(text, context="executive")
        self.assertIn("Executive Summary", arranged)
        self.assertIn("Key Points", arranged)
        self.assertIn("Recommended Actions", arranged)


if __name__ == "__main__":
    unittest.main()