Update capture suspend test for logging.
This commit is contained in:
parent
f66764e1c0
commit
e391c47ed8
|
@ -889,6 +889,12 @@ def test_live_logging_suspends_capture(has_capture_manager, request):
|
||||||
def resume_global_capture(self):
|
def resume_global_capture(self):
|
||||||
self.calls.append("resume_global_capture")
|
self.calls.append("resume_global_capture")
|
||||||
|
|
||||||
|
def activate_fixture(self, item=None):
|
||||||
|
self.calls.append("activate_fixture")
|
||||||
|
|
||||||
|
def deactivate_fixture(self, item=None):
|
||||||
|
self.calls.append("deactivate_fixture")
|
||||||
|
|
||||||
# sanity check
|
# sanity check
|
||||||
assert CaptureManager.suspend_capture_item
|
assert CaptureManager.suspend_capture_item
|
||||||
assert CaptureManager.resume_global_capture
|
assert CaptureManager.resume_global_capture
|
||||||
|
@ -909,8 +915,10 @@ def test_live_logging_suspends_capture(has_capture_manager, request):
|
||||||
logger.critical("some message")
|
logger.critical("some message")
|
||||||
if has_capture_manager:
|
if has_capture_manager:
|
||||||
assert MockCaptureManager.calls == [
|
assert MockCaptureManager.calls == [
|
||||||
|
"deactivate_fixture",
|
||||||
"suspend_global_capture",
|
"suspend_global_capture",
|
||||||
"resume_global_capture",
|
"resume_global_capture",
|
||||||
|
"activate_fixture",
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
assert MockCaptureManager.calls == []
|
assert MockCaptureManager.calls == []
|
||||||
|
|
Loading…
Reference in New Issue