MCPcopy
hub / github.com/beetbox/beets / test_absolute

Method test_absolute

test/test_query.py:379–385  ·  view source on GitHub ↗
(self, lib, helper, query)

Source from the content-addressed store, hash-verified

377 "query", ["path:", "path::"], ids=["path", "regex"]
378 )
379 def test_absolute(self, lib, helper, query):
380 item_path = helper.lib_path / "item.mp3"
381 bytes_path = os.fsencode(item_path)
382 helper.add_item(path=bytes_path, title="absolute item")
383 q = f"{query}{item_path}".replace("\\", "\\\\")
384
385 assert {i.title for i in lib.items(q)} == {"absolute item"}
386
387 def test_relative(self, lib, helper):
388 item_path = helper.lib_path / "relative" / "item.mp3"

Callers

nothing calls this directly

Calls 3

replaceMethod · 0.80
add_itemMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected