test: base_agent フォールバックパスのカバレッジ向上#87
Closed
fukukei23 wants to merge 2 commits into
Closed
Conversation
リファクタリング(1be87e1, 005726b)でモジュールが移動されたが、 テストファイルとソースファイル内のインポートパスが更新されていなかった。 主な修正: - agents → analyzer/config/guard/services/utils への移動に対応 - gradio_app/modules/ui/ventures → archive/ への移動に対応 - mock.patch()内のパスも含め全て更新 テスト結果: 5441 passed, 0 failed(修正前: 48 collection errors) Closes #84 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
未カバー行のフォールバックパスをテスト: - L19-20: dotenv load_dotenv 例外時のフォールバック - L25-26: LLMRouter import 失敗時のフォールバック - L40-48: retry_utils import 失敗時の HAS_RETRY=False パス - L141: InvalidModelOutputError 発生時のフォールバック - L147: convert_http_error_to_nexus_error 呼び出しパス テスト結果: 5450 passed, 0 failed(+8テスト、回帰なし) Closes #86 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
99dc8ce to
50f0998
Compare
Owner
Author
|
Closing: main has diverged significantly (92+ commits of refactoring). Merge conflicts in most files. Will re-implement needed tests on current main when NexusCore becomes active again. |
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
base_agent.pyのフォールバックパス(83.96%)をカバーするテスト8件を追加追加テスト
Test plan
python -m pytest tests/ -q→ 5450 passed, 0 failed (+8テスト)Closes #86
🤖 Generated with Claude Code