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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user