Commit 18d24d0
committed
Fix testcase - agentframework v2 - Refactor tests for ChatWithDataPlugin, ChatService, HistoryService, and App
- Removed test cases for deprecated agent factories in test_app.py.
- Updated test cases in test_chat_with_data_plugin.py to reflect changes in the ChatWithDataPlugin implementation.
- Refactored test cases in test_chat_service.py to remove dependencies on mock requests and streamline the setup.
- Enhanced test_generate_title in test_history_service.py to utilize the new v2 agent framework.
- Improved error handling tests in test_chat_service.py for rate limits and general exceptions.
- Consolidated mock setups and assertions for clarity and maintainability.1 parent bce02f4 commit 18d24d0
File tree
11 files changed
+416
-970
lines changed- src
- api
- common/database
- services
- tests
- api
- agents
- plugins
- services
11 files changed
+416
-970
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments