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

Method setUp

tests/test_web_views.py:439–448  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

437 _RAW = TestExplainCacheHeaders._RAW
438
439 def setUp(self):
440 self.app = create_app()
441 self.app.config["DEBUG"] = True
442 self.app.config["APP_VERSION"] = "deadbeef"
443 self.app.config["DB_SHA256"] = "abcdef0123456789fedcba9876543210"
444 self.store = Store.create(":memory:")
445 self.store.add_manpage(TestExplainCacheHeaders._make_mp(self), self._RAW)
446 _use_store(self.app, self.store)
447 self.app.config["TESTING"] = True
448 self.client = self.app.test_client()
449
450 def test_program_view_has_no_cache_headers(self):
451 rv = self.client.get("/explain/bar")

Callers

nothing calls this directly

Calls 5

create_appFunction · 0.90
_use_storeFunction · 0.85
add_manpageMethod · 0.80
createMethod · 0.45
_make_mpMethod · 0.45

Tested by

no test coverage detected