from unittest.mock import Mock


def mock_config(temp_dir):
    """Supply a reliable return value for the Configuration.get() method."""
    get_config_mock = Mock()
    get_config_mock.return_value = dict(
        skills=dict(
            msm=dict(
                directory='skills',
                versioned=True,
                repo=dict(
                    cache='.skills-repo',
                    url='https://github.com/MycroftAI/mycroft-skills',
                    branch='19.02'
                )
            ),
            update_interval=1.0,
            auto_update=True,
            blacklisted_skills=[],
            priority_skills=['foobar'],
            upload_skill_manifest=True
        ),
        data_dir=str(temp_dir),
        enclosure=dict()
    )

    return get_config_mock