from unittest.mock import Mock


def get_command_args_mock(theme_name):
    """Get a mock of command-line argument object.

    The function assumes the reload attribute equal to False -
    otherwise we could just use an unaltered instance of Mock.

    :param _reload: a value of reload attribute of command_args.
    :param theme_name: a name of a theme to be set, provided by
        command_args.
    """
    command_args = Mock()
    command_args.reload = False
    command_args.theme = theme_name

    return command_args