"""Tests for duty_teller.handlers.register_handlers."""

from unittest.mock import MagicMock

from duty_teller.handlers import register_handlers


def test_register_handlers_adds_all_handlers():
    """register_handlers: adds command, import, group pin handlers and error handler."""
    mock_app = MagicMock()
    register_handlers(mock_app)
    assert mock_app.add_handler.call_count >= 10
    assert mock_app.add_error_handler.call_count == 1
