LegalAlly / tests /test.py
Rohil Bansal
Initial Commit. LegalAlly.
96dad0a
raw
history blame
310 Bytes
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()