MCPcopy
hub / github.com/openai/openai-python / test_drain_empties_queue

Method test_drain_empties_queue

tests/test_send_queue.py:29–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 assert len(q) == 1
28
29 def test_drain_empties_queue(self) -> None:
30 q = SendQueue()
31 q.enqueue("hello")
32 q.drain()
33 assert len(q) == 0
34 assert not q
35
36 def test_bool(self) -> None:
37 q = SendQueue()

Callers

nothing calls this directly

Calls 3

enqueueMethod · 0.95
drainMethod · 0.95
SendQueueClass · 0.90

Tested by

no test coverage detected