def test_get_event_triggers(component1, component2):
    """Test that we can get the triggers of a component.

    Args:
        component1: A test component.
        component2: A test component.
    """
    default_triggers = {
        EventTriggers.ON_FOCUS,
        EventTriggers.ON_BLUR,
        EventTriggers.ON_CLICK,
        EventTriggers.ON_CONTEXT_MENU,
        EventTriggers.ON_DOUBLE_CLICK,
        EventTriggers.ON_MOUSE_DOWN,
        EventTriggers.ON_MOUSE_ENTER,
        EventTriggers.ON_MOUSE_LEAVE,
        EventTriggers.ON_MOUSE_MOVE,
        EventTriggers.ON_MOUSE_OUT,
        EventTriggers.ON_MOUSE_OVER,
        EventTriggers.ON_MOUSE_UP,
        EventTriggers.ON_SCROLL,
        EventTriggers.ON_SCROLL_END,
        EventTriggers.ON_MOUNT,
        EventTriggers.ON_UNMOUNT,
    }
    assert component1.create().get_event_triggers().keys() == default_triggers
    assert (
        component2.create().get_event_triggers().keys()
        == {
            "on_open",
            "on_close",
            "on_prop_event",
            "on_user_visited_count_changed",
            "on_two_args",
            "on_user_list_changed",
        }
        | default_triggers
    )
Test that we can get the triggers of a component.

    Args:
        component1: A test component.
        component2: A test component.
    
tests/units/components/test_component.py