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

Method test_no_duplicates

tests/test_store.py:291–298  ·  view source on GitHub ↗
(self, store)

Source from the content-addressed store, hash-verified

289 assert ("debian", "12") in pairs
290
291 def test_no_duplicates(self, store):
292 mp1 = _make_manpage("ps", "1", distro="ubuntu", release="26.04")
293 mp2 = _make_manpage("ls", "1", distro="ubuntu", release="26.04")
294 store.add_manpage(mp1, _make_raw())
295 store.add_manpage(mp2, _make_raw())
296
297 pairs = store.distros()
298 assert pairs.count(("ubuntu", "26.04")) == 1
299
300
301class TestGetManpageSource:

Callers

nothing calls this directly

Calls 4

add_manpageMethod · 0.80
distrosMethod · 0.80
_make_manpageFunction · 0.70
_make_rawFunction · 0.70

Tested by

no test coverage detected