File size: 502 Bytes
ef4248d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

import unittest
import sys
import os

# Add the src directory to PYTHONPATH
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')))

from src.backend.pipeline_manager import PipelineManager

class TestPipelineManager(unittest.TestCase):
    def test_autogpt_task(self):
        manager = PipelineManager()
        task_result = manager.autogpt_task("Create report")
        self.assertIn("AutoGPT executing", task_result)

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