MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / CaptureHandler

Class CaptureHandler

test_haystack/test_models.py:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16class CaptureHandler(std_logging.Handler):
17 logs_seen = []
18
19 def emit(self, record):
20 CaptureHandler.logs_seen.append(record)
21
22
23class SearchResultTestCase(TestCase):

Callers 1

setUpMethod · 0.70

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…