"""Tests for git utilities."""

import pytest
from roastbuddy.utils.git_utils import is_clean_commit_message


def test_is_clean_commit_message():
    """Test clean commit message detection."""
    # Clean messages
    assert is_clean_commit_message("Add user authentication feature") == True
    assert is_clean_commit_message("Fix bug in payment processing logic") == True
    assert is_clean_commit_message("Refactor database connection handling") == True
    
    # Not clean messages
    assert is_clean_commit_message("wip") == False
    assert is_clean_commit_message("tmp") == False
    assert is_clean_commit_message("fix") == False
    assert is_clean_commit_message("stuff") == False
    assert is_clean_commit_message("short") == False  # Too short
    assert is_clean_commit_message("fixed stuff") == False
