diff --git a/tests/test_system.py b/tests/test_system.py index f8c75e7..24efb1d 100644 --- a/tests/test_system.py +++ b/tests/test_system.py @@ -40,14 +40,12 @@ def test_no_args_without_repo(tmp_path): assert str(exc_info.value) == "Not a valid Git repository" -def test_auto_create_config(capsys, mock_repo, mock_home_dir): +def test_auto_create_config(mock_repo, mock_home_dir): """Test no configuration file""" config_file = mock_home_dir / ".config/aicmt/.aicmtrc" assert not config_file.exists() with patch.object(sys, "argv", ["aicmt"]): AiCommit(mock_repo) - captured = capsys.readouterr() - assert "Please check and update your configuration file." in captured.out assert config_file.exists() def test_no_changes(ai_commit, mock_repo, mock_openai, mock_config):