Skip to content

Commit

Permalink
drop tests for plaintext & pickle spider queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Digenis committed Oct 18, 2017
1 parent 0c0cef5 commit f4e101d
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions scrapyd/tests/test_spiderqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
from scrapyd import spiderqueue

class SpiderQueueTest(unittest.TestCase):
"""This test case can be used easily for testing other SpiderQueue's by
just changing the _get_queue() method. It also supports queues with
deferred methods.
"""This test case also supports queues with deferred methods.
"""

def setUp(self):
self.q = self._get_queue()
self.q = spiderqueue.SqliteSpiderQueue(':memory:')
self.name = 'spider1'
self.args = {
'arg1': 'val1',
Expand All @@ -23,8 +21,6 @@ def setUp(self):
self.msg = self.args.copy()
self.msg['name'] = self.name

def _get_queue(self):
return spiderqueue.SqliteSpiderQueue(':memory:')

def test_interface(self):
verifyObject(ISpiderQueue, self.q)
Expand Down Expand Up @@ -68,13 +64,3 @@ def test_clear(self):

c = yield maybeDeferred(self.q.count)
self.assertEqual(c, 0)


class JsonSpiderQueueTest(unittest.TestCase):
def _get_queue(self):
return spiderqueue.JsonSqliteSpiderQueue(':memory:')


class PickleSpiderQueueTest(unittest.TestCase):
def _get_queue(self):
return spiderqueue.PickleSqliteSpiderQueue(':memory:')

0 comments on commit f4e101d

Please sign in to comment.