def test_get_current_applications(obs: Dict):
    """Test getting list of current applications"""
    with patch("AppKit.NSWorkspace") as mock_workspace:
        mock_app = Mock()
        mock_app.activationPolicy.return_value = 0
        mock_app.localizedName.return_value = "TestApp"
        mock_workspace.sharedWorkspace.return_value.runningApplications.return_value = [
            mock_app
        ]

        apps = UIElement.get_current_applications(obs)
        assert apps == ["TestApp"]
Test getting list of current applications
tests/test_uielement_macos.py