plugin cleanups

* make pytest_eventlog.py work again by adding a hack to the registry, rename
* disable resultdb hook plugin, it needs merging with resultlog
* add some docstrings, streamline bits

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-05-20 23:12:37 +02:00
parent 219e627f87
commit d1f24aa251
17 changed files with 129 additions and 118 deletions

View File

@@ -1,17 +1,15 @@
import os
"""
provides the "monkeypatch" funcarg for safely patching objects,
"monkeypatch" funcarg for safely patching objects,
dictionaries and environment variables during the execution of
a test. There are three helper functions:
a test. "monkeypatch" has three helper functions:
monkeypatch.setattr(obj, name, value)
monkeypatch.setitem(obj, name, value)
monkeypatch.setenv(name, value)
After the test run all such modifications will be undone,
which may even mean deleting the attribute or dictionary entry
if it didn't exist before.
After the test has run modifications will be undone.
"""
import os
def pytest_funcarg__monkeypatch(request):
monkeypatch = MonkeyPatch()