@devries-cameron20 / composio Mirror · read-only / commits / 78fb09efd
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 14:45 UTC

test(py): preserve isolated Autogen regression coverage

jkomyno committed Aug 26, 2026 at 19:40 UTC 78fb09efdf1630e49f4c40a21086df5d1c21c35c
4 files changed +24 -3
.agents/skills/python-testing/references/nox-make.md
+1
@@ -31,6 +31,7 @@ Current sessions include:
31 - `fix`: Ruff automatic fixes.
32 - `type_inference`: provider return-type inference checks.
33 - `tst`: pytest test suite.
34 +- `tst_autogen`: Autogen regressions in an isolated protobuf-compatible environment.
35 - `snt`: sanity tests.
36
37 When adding or renaming provider packages, inspect the `type_inference` session's explicit provider install list and checked test-file list.
.github/workflows/py.test.yml
+5 -1
@@ -104,8 +104,12 @@ jobs:
104 # its own environment instead of constructing an invalid combination.
105 uv venv autogen-env --python ${{ matrix.python-version }}
106 source autogen-env/bin/activate
107 - uv pip install -e . -e providers/autogen
107 + uv pip install -e . -e providers/autogen pytest pytest-mock
108 python -c "import composio_autogen; print('✓ Autogen provider import successful')"
109 + python -m pytest \
110 + tests/test_provider.py::TestAgenticSkipDefaultsParity::test_autogen_signature_honors_skip_defaults \
111 + tests/test_provider.py::TestAgenticSkipDefaultsParity::test_autogen_signature_preserves_default \
112 + -v --tb=short
113
114 - name: Run Unit Tests
115 run: |
python/noxfile.py
+14
@@ -111,6 +111,20 @@ def tst(session: Session):
111 session.run("pytest", *test_paths, "-v", "--tb=short")
112
113
114 +@nox.session
115 +def tst_autogen(session: Session):
116 + """Run Autogen tests in its protobuf-compatible environment."""
117 + session.install(".", "--group", "dev")
118 + session.install("./providers/autogen")
119 + session.run(
120 + "pytest",
121 + "tests/test_provider.py::TestAgenticSkipDefaultsParity::test_autogen_signature_honors_skip_defaults",
122 + "tests/test_provider.py::TestAgenticSkipDefaultsParity::test_autogen_signature_preserves_default",
123 + "-v",
124 + "--tb=short",
125 + )
126 +
127 +
128 @nox.session
129 def snt(session: Session):
130 """Run fast sanity tests for imports and SDK initialization."""
python/tests/test_provider.py
+4 -2
@@ -1327,8 +1327,10 @@ class TestAgenticSkipDefaultsParity:
1327 mismatch, but its signature likewise ignored skip_defaults; it is aligned
1328 too and checked on the signature alone.
1329
1330 - Provider packages are optional (the unit-test job installs langchain and
1331 - autogen), so each case skips via importorskip when its provider is absent.
1330 + Provider packages are optional. The shared unit-test job installs langchain
1331 + and langgraph, while Autogen runs separately because their protobuf
1332 + requirements conflict. Each case skips via importorskip when its provider
1333 + is absent.
1334 """
1335
1336 def _make_tool_with_default(self):