From e65dee57d414a6bc34815007691ced7e99958c3e Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Wed, 28 Feb 2018 12:15:12 -0800 Subject: [PATCH] minor test edits --- tests/test_warcprox.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_warcprox.py b/tests/test_warcprox.py index 2f4f8e2..53b31eb 100755 --- a/tests/test_warcprox.py +++ b/tests/test_warcprox.py @@ -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)