Merge pull request #3407 from rachel1792/master
Fix typo in caplog fixture documentation: Issue #3406
This commit is contained in:
commit
f0084608cc
|
@ -289,9 +289,9 @@ def caplog(request):
|
||||||
|
|
||||||
Captured logs are available through the following methods::
|
Captured logs are available through the following methods::
|
||||||
|
|
||||||
* caplog.text() -> string containing formatted log output
|
* caplog.text -> string containing formatted log output
|
||||||
* caplog.records() -> list of logging.LogRecord instances
|
* caplog.records -> list of logging.LogRecord instances
|
||||||
* caplog.record_tuples() -> list of (logger_name, level, message) tuples
|
* caplog.record_tuples -> list of (logger_name, level, message) tuples
|
||||||
* caplog.clear() -> clear captured records and formatted log output string
|
* caplog.clear() -> clear captured records and formatted log output string
|
||||||
"""
|
"""
|
||||||
result = LogCaptureFixture(request.node)
|
result = LogCaptureFixture(request.node)
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix typo in ``caplog`` fixture documentation, which incorrectly identified certain attributes as methods.
|
|
@ -77,9 +77,9 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
|
||||||
|
|
||||||
Captured logs are available through the following methods::
|
Captured logs are available through the following methods::
|
||||||
|
|
||||||
* caplog.text() -> string containing formatted log output
|
* caplog.text -> string containing formatted log output
|
||||||
* caplog.records() -> list of logging.LogRecord instances
|
* caplog.records -> list of logging.LogRecord instances
|
||||||
* caplog.record_tuples() -> list of (logger_name, level, message) tuples
|
* caplog.record_tuples -> list of (logger_name, level, message) tuples
|
||||||
* caplog.clear() -> clear captured records and formatted log output string
|
* caplog.clear() -> clear captured records and formatted log output string
|
||||||
monkeypatch
|
monkeypatch
|
||||||
The returned ``monkeypatch`` fixture provides these
|
The returned ``monkeypatch`` fixture provides these
|
||||||
|
|
Loading…
Reference in New Issue