Commit graph

17 commits

Author SHA1 Message Date
claude[bot]
0a71905be8 test: update git_diff tests to match new all-extensions behavior
get_git_diff now uses all registered extensions instead of filtering
by current language, so update tests to reflect the new behavior.

Co-authored-by: Sarthak Agarwal <undefined@users.noreply.github.com>
2026-03-19 18:07:19 +00:00
Mohamed Ashraf
87eedac002 fix: git diff auto-detection filters by current language instead of hardcoding .py
get_git_diff() hardcoded `.py` as the only valid file extension, causing
the auto-detect flow (no --file flag) to return 0 functions for Java,
JavaScript, and TypeScript projects. This broke the Claude Code plugin
integration where the hook runs `codeflash --subagent` without --file.

Now uses current_language_support().file_extensions to filter by the
active language's extensions dynamically.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 18:40:41 +00:00
aseembits93
b5a01457d2 test: add unit tests for deletion-only git diff detection
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:33:40 -07:00
Mohamed Ashraf
d268e5d0ff Add tests for handling detached HEAD state in Git operations
Enhance the test suite for Git utilities by adding scenarios to check behavior when the HEAD is detached. This includes mocking the repository state to ensure proper handling in both attached and detached scenarios during branch push operations.
2025-12-18 14:05:04 +02:00
Kevin Turcios
be1242dbd1 fix test 2025-07-30 11:24:19 -07:00
Kevin Turcios
f8c7f2a7ec
CF 680 don't emit unnecessary warning & improve UX when using cmd init (#487)
* CF 680

* don't

* Update uv.lock

* improve UX when under cmd init

* fix mypy
2025-07-03 20:46:00 +05:30
Saurabh Misra
c856f1e1fe fix a bug 2025-06-07 21:37:05 -07:00
Aseem Saxena
ca9a83666e fixed 2025-04-17 21:18:03 -07:00
Saurabh Misra
d455cdee1a Ruff reformat and fix all the python files
Set minimum libcst version to be 1.0.1
move the stub files to dev dependencies
2024-10-25 15:45:44 -07:00
Saurabh Misra
a6cf9e6e55 Fix tests 2024-10-21 22:30:52 -07:00
Kevin Turcios
fae10f6c9c round three 2024-10-12 19:40:07 -05:00
afik.cohen
e1e363b13d CF-92 if the user is on a branch that isn't pushed, ask the user to push before continuing to run --all. Also add check_and_push_branch and tests. 2024-06-03 18:17:34 -07:00
afik.cohen
1158db281e Refactor git repo checking to more sane implementation and add tests 2024-06-03 17:36:35 -07:00
afik.cohen
17443f6ec5 added test case and used removesuffix instead of rstrip 2024-05-15 19:45:26 -07:00
afik.cohen
b2b92a69c2 Fix import/patch 2024-03-05 17:42:42 -08:00
afik.cohen
285b6c7d5f Reformat 2024-03-05 16:57:45 -08:00
afik.cohen
a0267490ea Optimize test_get_repo_owner_and_name and add tests 2024-03-05 16:57:31 -08:00