MCPcopy
hub / github.com/scrapy/scrapy / stats

Function stats

tests/test_spidermiddleware_depth.py:25–31  ·  view source on GitHub ↗
(crawler: Crawler)

Source from the content-addressed store, hash-verified

23
24@pytest.fixture
25def stats(crawler: Crawler) -> Generator[StatsCollector]:
26 assert crawler.stats is not None
27 crawler.stats.open_spider()
28
29 yield crawler.stats
30
31 crawler.stats.close_spider()
32
33
34@pytest.fixture

Callers

nothing calls this directly

Calls 2

open_spiderMethod · 0.45
close_spiderMethod · 0.45

Tested by

no test coverage detected