MCPcopy Create free account
hub / github.com/idank/explainshell / test_url_distro_no_fallback

Method test_url_distro_no_fallback

tests/test_web_views.py:294–300  ·  view source on GitHub ↗

Explicit URL distro should NOT fall back — missing is missing.

(self)

Source from the content-addressed store, hash-verified

292 self.assertIn(b"aonly", rv.data)
293
294 def test_url_distro_no_fallback(self):
295 """Explicit URL distro should NOT fall back — missing is missing."""
296 app = self._make_app(self._store_with_ubuntu_and_arch())
297 with app.test_client() as c:
298 rv = c.get("/explain/arch/latest?cmd=uonly+-u")
299 self.assertEqual(rv.status_code, 200)
300 self.assertIn(b"missing man page", rv.data)
301
302 def test_all_distros_miss_still_raises(self):
303 """A command that exists nowhere should still show missing."""

Callers

nothing calls this directly

Calls 2

_make_appMethod · 0.95

Tested by

no test coverage detected