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

Method test_no_duplicates

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

Source from the content-addressed store, hash-verified

341 assert sections == ["1", "3"]
342
343 def test_no_duplicates(self, store):
344 mp1 = _make_manpage("tar", "1")
345 mp2 = _make_manpage("ls", "1")
346 store.add_manpage(mp1, _make_raw())
347 store.add_manpage(mp2, _make_raw())
348
349 sections = store.list_sections("ubuntu", "26.04")
350 assert sections == ["1"]
351
352 def test_empty_for_unknown_distro(self, store):
353 mp = _make_manpage("tar", "1")

Callers

nothing calls this directly

Calls 4

add_manpageMethod · 0.80
list_sectionsMethod · 0.80
_make_manpageFunction · 0.70
_make_rawFunction · 0.70

Tested by

no test coverage detected