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

Method test_path_sep_detection

test/test_query.py:446–454  ·  view source on GitHub ↗

Test detection of path queries based on the presence of path separators.

(self, monkeypatch, tmp_path, q, is_path_query)

Source from the content-addressed store, hash-verified

444 ],
445 )
446 def test_path_sep_detection(self, monkeypatch, tmp_path, q, is_path_query):
447 """Test detection of path queries based on the presence of path separators."""
448 monkeypatch.chdir(tmp_path)
449 (tmp_path / "foo").mkdir()
450 (tmp_path / "foo" / "bar").touch()
451 if Path(q).is_absolute():
452 q = str(tmp_path / q[1:])
453
454 assert PathQuery.is_path_query(q) == is_path_query
455
456
457class TestQuery:

Callers

nothing calls this directly

Calls 2

touchMethod · 0.80
is_path_queryMethod · 0.80

Tested by

no test coverage detected