MCPcopy Create free account
hub / github.com/hynek/structlog / test_event_empty_string

Method test_event_empty_string

tests/test_base.py:136–145  ·  view source on GitHub ↗

Empty strings are a valid event.

(self)

Source from the content-addressed store, hash-verified

134
135class TestProcessing:
136 def test_event_empty_string(self):
137 """
138 Empty strings are a valid event.
139 """
140 b = build_bl(processors=[], context={})
141
142 args, kw = b._process_event("meth", "", {"foo": "bar"})
143
144 assert () == args
145 assert {"event": "", "foo": "bar"} == kw
146
147 def test_copies_context_before_processing(self):
148 """

Callers

nothing calls this directly

Calls 2

_process_eventMethod · 0.80
build_blFunction · 0.70

Tested by

no test coverage detected