scrapinghub / scrapyrt

HTTP API for Scrapy spiders
BSD 3-Clause "New" or "Revised" License
824 stars 161 forks source link

Fix deprecated feature #127

Closed serhii73 closed 3 years ago

serhii73 commented 3 years ago

When we run tests for this project, we get this warning:

============================================================================================================ warnings summary =============================================================================================================
tests/test_crawl_manager.py::TestCrawl::test_spider_arguments_are_passed
  /usr/lib/python3.8/unittest/case.py:1215: DeprecationWarning: assertDictContainsSubset is deprecated
    warnings.warn('assertDictContainsSubset is deprecated',
-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================================================== 101 passed, 1 warning in 27.20s =====================================================================================================

This PR will fix it. Thank you.

pawelmhm commented 3 years ago

thanks @serhii73