

def test_frontera_settings_have_precedence_over_crawler_settings():
    crawler_settings = {
        'MAX_REQUESTS': 10,
        'FRONTERA_SETTINGS': 'frontera.tests.scrapy_spider.frontera.settings',
    }
    settings = ScrapySettingsAdapter(crawler_settings)
    assert (settings.get('MAX_REQUESTS') == 5)

dataset/ETHPy150Open scrapinghub/frontera/frontera/tests/test_scrapy_settings_adapter.py test_frontera_settings_have_precedence_over_crawler_settings/original