test: api/routes/api_keys.py カバレッジ向上(74%→90%+)#91
Closed
fukukei23 wants to merge 3 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>
未カバー行のテスト15件を追加: - analyze_requirement の空入力フォールバック/JSON パース失敗 - generate_final_spec の正常系/エッジケース - TextLocalization の多言語/未知キー/未知言語 - StateMachine の初期化/トランジション - headless モード/Gradio未インストール時のフォールバック テスト結果: 5457 passed, 0 failed(+15テスト、回帰なし) Closes #88 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
9テスト追加: _get_user_id_from_auth invalid user_id (3), SQLAlchemyError rollback paths (3), unexpected Exception fallbacks (3) Closes #90 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. |
40cd211 to
d202791
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
src/nexuscore/api/routes/api_keys.pyのテストカバレッジを 74.23% → 90%+ に向上Test plan
Closes #90
🤖 Generated with Claude Code