remove shutdown logic from PluginManager and add a add_cleanup() API
for the already existing cleanup logic of the config object. This simplifies lifecycle management as we don't keep two layers of shutdown functions and also simplifies the pluginmanager interface. also add some docstrings. --HG-- branch : plugin_no_pytest
This commit is contained in:
@@ -214,8 +214,8 @@ def test_plugin_specify(testdir):
|
||||
def test_plugin_already_exists(testdir):
|
||||
config = testdir.parseconfig("-p", "terminal")
|
||||
assert config.option.plugins == ['terminal']
|
||||
config.do_configure()
|
||||
config.do_unconfigure()
|
||||
config._do_configure()
|
||||
config._ensure_unconfigure()
|
||||
|
||||
def test_exclude(testdir):
|
||||
hellodir = testdir.mkdir("hello")
|
||||
|
||||
Reference in New Issue
Block a user