1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-13 15:04:57 +00:00

Mark the asyncio pipelines test as only_asyncio.

This commit is contained in:
Andrey Rakhmatullin 2019-12-16 23:15:43 +05:00
parent bfdd552a32
commit bdef948aae

View File

@ -1,5 +1,6 @@
import asyncio
from pytest import mark
from twisted.internet import defer
from twisted.internet.defer import Deferred
from twisted.trial import unittest
@ -92,6 +93,7 @@ class PipelineTestCase(unittest.TestCase):
yield crawler.crawl(mockserver=self.mockserver)
self.assertEqual(len(self.items), 1)
@mark.only_asyncio()
@defer.inlineCallbacks
def test_asyncdef_asyncio_pipeline(self):
crawler = self._create_crawler(AsyncDefAsyncioPipeline)