Test detection of path queries based on the presence of path separators.
(self, monkeypatch, tmp_path, q, is_path_query)
| 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 | |
| 457 | class TestQuery: |
nothing calls this directly
no test coverage detected