MCPcopy Create free account
hub / github.com/dbcli/mycli / DummyStream

Class DummyStream

test/pytests/test_main_modes_batch.py:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71class DummyStream:
72 def __init__(self, tty: bool = False) -> None:
73 self.closed = False
74 self.tty = tty
75 self.writes: list[str] = []
76
77 def isatty(self) -> bool:
78 return self.tty
79
80 def write(self, value: str) -> int:
81 self.writes.append(value)
82 return len(value)
83
84 def flush(self) -> None:
85 return None
86
87
88class DummyProgressBar:

Callers 1

make_fake_sysFunction · 0.85

Calls

no outgoing calls

Tested by 1

make_fake_sysFunction · 0.68