Debian Codegraph @

tests/unit/test_path_info.py

raw symbols SCIP
1 import pathlib
2 import pytest
3 import friendly_traceback as ft
4
5
6 class CustomPathLike:
7 """A simple PEP 519 protocol impl, only for testing ``path_info`` functions."""
8
9 def __fspath__(self):
10 return __file__
11
12
13 @pytest.mark.parametrize(
14 "file",
15 [__file__, pathlib.Path(__file__), CustomPathLike()],
16 )
17 def test_is_excluded_file_accepts_any_pathlikes(file):
18 assert not ft.path_info.is_excluded_file(file)