MCPcopy Index your code
hub / github.com/idank/explainshell / setUp

Method setUp

tests/test_manager.py:2202–2216  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2200 """CliRunner tests for the ``show`` command group."""
2201
2202 def setUp(self):
2203 self.tmp = tempfile.mkdtemp()
2204 self.db_path = os.path.join(self.tmp, "test.db")
2205 self.store = Store.create(self.db_path)
2206 self.store.add_manpage(
2207 _make_manpage(
2208 "tar",
2209 options=[
2210 Option(text="create archive", short=["-c"], long=["--create"]),
2211 Option(text="extract", short=["-x"], long=["--extract"]),
2212 ],
2213 ),
2214 _make_raw(),
2215 )
2216 self.store.add_manpage(_make_manpage("echo"), _make_raw())
2217
2218 def tearDown(self):
2219 self.store.close()

Callers

nothing calls this directly

Calls 5

OptionClass · 0.90
add_manpageMethod · 0.80
_make_manpageFunction · 0.70
_make_rawFunction · 0.70
createMethod · 0.45

Tested by

no test coverage detected