(self, lib, helper, query)
| 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" |