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

Method open

test/pytests/test_main_modes_repl.py:128–132  ·  view source on GitHub ↗
(self, mode: str)

Source from the content-addressed store, hash-verified

126 return FakeResourceTree(self.files, path)
127
128 def open(self, mode: str) -> StringIO:
129 assert self.path is not None
130 if self.path not in self.files:
131 raise FileNotFoundError(self.path)
132 return StringIO(self.files[self.path])
133
134
135def make_repl_cli(sqlexecute: Any | None = None) -> Any:

Calls

no outgoing calls

Tested by

no test coverage detected