mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
minor test edits
This commit is contained in:
parent
6ce5119a48
commit
e65dee57d4
@ -1427,9 +1427,9 @@ def test_controller_with_defaults():
|
||||
assert wwp.writer_pool.default_warc_writer.record_builder.digest_algorithm == 'sha1'
|
||||
|
||||
|
||||
class MyEarlyPlugin(warcprox.BaseStandardPostfetchProcessor):
|
||||
class EarlyPlugin(warcprox.BaseStandardPostfetchProcessor):
|
||||
CHAIN_POSITION = 'early'
|
||||
def _process_put(self):
|
||||
def _process_url(self):
|
||||
pass
|
||||
|
||||
|
||||
@ -1438,7 +1438,7 @@ def test_load_plugin():
|
||||
'warcprox.stats.RunningStats',
|
||||
'warcprox.BaseStandardPostfetchProcessor',
|
||||
'warcprox.BaseBatchPostfetchProcessor',
|
||||
'%s.%s' % (__name__, MyEarlyPlugin.__name__),])
|
||||
'%s.%s' % (__name__, EarlyPlugin.__name__),])
|
||||
controller = warcprox.controller.WarcproxController(options)
|
||||
assert isinstance(
|
||||
controller._postfetch_chain[-1],
|
||||
@ -1459,7 +1459,7 @@ def test_load_plugin():
|
||||
assert isinstance(
|
||||
controller._postfetch_chain[-4].listener,
|
||||
warcprox.stats.RunningStats)
|
||||
# MyEarlyPlugin
|
||||
# EarlyPlugin
|
||||
assert isinstance(
|
||||
controller._postfetch_chain[0],
|
||||
warcprox.BaseStandardPostfetchProcessor)
|
||||
|
Loading…
x
Reference in New Issue
Block a user