Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
enqueue
Method · 0.95
drain
Method · 0.95
SendQueue
Class · 0.90
Tested by
no test coverage detected