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:
parent
bfdd552a32
commit
bdef948aae
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user