Commit 9e5aec8
committed
fix(py/genkit): fix resource test failures
- Replace MockInput classes with ResourceInput instances in tests
- Use resource() function instead of Action constructor for dynamic providers
- Change provider_fn return type from Action|None to object to avoid Pydantic schema generation errors
- Remove unused Action import
All 729 tests now pass.1 parent 925958f commit 9e5aec8
2 files changed
Lines changed: 11 additions & 28 deletions
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 206 | + | |
| 207 | + | |
215 | 208 | | |
216 | 209 | | |
217 | 210 | | |
| |||
228 | 221 | | |
229 | 222 | | |
230 | 223 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 224 | + | |
238 | 225 | | |
239 | 226 | | |
240 | | - | |
| 227 | + | |
241 | 228 | | |
242 | 229 | | |
243 | 230 | | |
| |||
254 | 241 | | |
255 | 242 | | |
256 | 243 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 244 | + | |
261 | 245 | | |
262 | 246 | | |
263 | 247 | | |
264 | 248 | | |
265 | 249 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 250 | + | |
0 commit comments