Metadata-Version: 1.2
Name: scrapy-mock
Version: 0.1.0
Summary: A Pytest plugin to record Scrapy responses and use them as testing fixtures.
Home-page: https://github.com/tcurvelo/scrapy-mock
Author: Thiago Curvelo
Author-email: tcurvelo@gmail.com
Maintainer: Thiago Curvelo
Maintainer-email: tcurvelo@gmail.com
License: MIT
Description: scrapy-mock
        ===========
        A Pytest plugin to record Scrapy responses and use them as testing fixtures.
        The motivation here is to decrease the friction to write unit tests for Scrapy spiders.
        
        Install
        -------
        ::
        
            pip install scrapy-mock
        
        Usage
        -----
        ::
        
            @pytest.mark.parametrize(
                ["url", "expected"],
                ("http://foobar.com/item/1",  {"name": "item1", "url": "/item/1"}),
            ])
            def test_parse(spider, response, expected):
                result = next(spider.parse(response))
                assert result == expected
        
Platform: UNKNOWN
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.7
