File size: 310 Bytes
96dad0a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import unittest
from notebooks.model import qa

class TestLawGPT(unittest.TestCase):
    def test_basic_query(self):
        query = "What is Section 302 in IPC?"
        response = qa.invoke(input=query)
        self.assertIn("Section 302", response["answer"])

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