rename sorter to reprec (report-recorder)

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-05-21 14:33:09 +02:00
parent d4a28b1b2d
commit ec34e9423e
16 changed files with 116 additions and 116 deletions

View File

@@ -74,16 +74,16 @@ class TestBootstrapping:
mod.pytest_plugins = "pytest_a"
aplugin = testdir.makepyfile(pytest_a="#")
pluginmanager = PluginManager()
sorter = testdir.getreportrecorder(pluginmanager)
reprec = testdir.getreportrecorder(pluginmanager)
#syspath.prepend(aplugin.dirpath())
py.std.sys.path.insert(0, str(aplugin.dirpath()))
pluginmanager.consider_module(mod)
call = sorter.getcall(pluginmanager.hook.pytest_plugin_registered.name)
call = reprec.getcall(pluginmanager.hook.pytest_plugin_registered.name)
assert call.plugin.__name__ == "pytest_a"
# check that it is not registered twice
pluginmanager.consider_module(mod)
l = sorter.getcalls("pytest_plugin_registered")
l = reprec.getcalls("pytest_plugin_registered")
assert len(l) == 1
def test_consider_conftest_deprecated(self, testdir):