Commit 48e4683
committed
Add conftest.py to guard agent_framework imports in CI unit tests
In some CI environments (Linux Python 3.12) agent_framework loads but
its top-level namespace is missing RawAgent/MCPStreamableHTTPTool due to
a partial circular-import during pytest collection. The new conftest.py
is loaded by pytest before test files in this directory tree are imported,
and adds MagicMock stubs for any absent names so the module-level
`from agent_framework import ...` in the production service succeeds.1 parent 3dd83fe commit 48e4683
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments