Skip to content

Commit d5d49f6

Browse files
cfsmp3claude
andcommitted
fix(test): Use valid hex commit hash in test_add_test_entry_db_commit_failure
The test was using 'testcommithash' which fails is_valid_commit_hash() validation, causing early return before safe_db_commit is called. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent dc36856 commit d5d49f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_ci/test_controllers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,8 @@ def test_add_test_entry_db_commit_failure(
14631463

14641464
mock_safe_commit.return_value = False
14651465

1466-
add_test_entry(g.db, 'testcommithash', TestType.commit)
1466+
# Use valid hex commit hash (is_valid_commit_hash validates before db commit)
1467+
add_test_entry(g.db, 'abcdef1234567890abcdef1234567890abcdef12', TestType.commit)
14671468

14681469
mock_safe_commit.assert_called_once()
14691470
mock_log.error.assert_called()

0 commit comments

Comments
 (0)