mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
try __name__...
This commit is contained in:
parent
b2672ab2f4
commit
0c650e1158
@ -1440,7 +1440,7 @@ def test_load_plugin():
|
||||
'warcprox.stats.RunningStats',
|
||||
'warcprox.BaseStandardPostfetchProcessor',
|
||||
'warcprox.BaseBatchPostfetchProcessor',
|
||||
'__main__.MyEarlyPlugin',])
|
||||
'%s.%s' % (__name__, MyEarlyPlugin.__name__),])
|
||||
controller = warcprox.controller.WarcproxController(options)
|
||||
assert isinstance(
|
||||
controller._postfetch_chain[-1],
|
||||
@ -1463,7 +1463,7 @@ def test_load_plugin():
|
||||
warcprox.stats.RunningStats)
|
||||
assert isinstance(
|
||||
controller._postfetch_chain[-5],
|
||||
__main__.MyEarlyPlugin)
|
||||
'%s.%s' % (__name__, Foo.__name__))
|
||||
|
||||
def test_choose_a_port_for_me(warcprox_):
|
||||
options = warcprox.Options()
|
||||
|
Loading…
x
Reference in New Issue
Block a user