Expand and stabilize test coverage for adapters and proxies#138
Merged
scottscott merged 2 commits intonomoticai:mainfrom Mar 19, 2026
Merged
Expand and stabilize test coverage for adapters and proxies#138scottscott merged 2 commits intonomoticai:mainfrom
scottscott merged 2 commits intonomoticai:mainfrom
Conversation
Add broad coverage for web adapters, proxy/mcp proxy flows, AutoGen integration, and simulation scenarios. Harden reliability by eliminating sys.modules leakage and RNG flakiness, plus close remaining adapter/proxy branch gaps and ignore .coverage. assisted-by: GitHub Copilot
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expand and harden test coverage for Nomotic's web adapters, proxy layers, and simulation scenarios, while eliminating test flakiness from module-import side effects and RNG-dependent assertions.
Key Changes
tests/test_web_adapters.py(new file)tests/test_proxy.pytests/test_mcp_proxy.pytests/test_framework_adapters.pytests/test_adversarial.pytests/test_adapters.pysys.modulesleakage from web adapter tests (cleanup after import stubbing)random.choices).coverageto.gitignoreValidation
pytest -q tests/test_framework_adapters.py tests/test_mcp_proxy.py tests/test_proxy.py tests/test_web_adapters.py194 passedpytest -q tests/test_framework_adapters.py tests/test_mcp_proxy.py tests/test_proxy.py tests/test_web_adapters.py tests/test_adversarial.py236 passedfastapi_adapter: 95%flask_adapter: 100%autogen_adapter: 100%proxy: 99%mcp_proxy: 89%scenarios: 100%Commits
9f0c0bctest: expand and stabilize coverage for adapters and proxies