Method: pylint.testutils.configuration_test.get_related_files
Calls: 33, Exceptions: 0, Paths: 1Back
Path 1: 33 calls (1.0)
PosixPath (3) '/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/functional/toml/toml_with_enable.toml' (1) '/Users/andrehora/Do...
'out' (33)
[] (19) list (14)
1def get_related_files(
2 tested_configuration_file: str | Path, suffix_filter: str
3) -> list[Path]:
4 """Return all the file related to a test conf file ending with a suffix."""
5 conf_path = Path(tested_configuration_file)
6 return [
7 p
8 for p in conf_path.parent.iterdir()
9 if str(p.stem).startswith(conf_path.stem) and str(p).endswith(suffix_filter)
10 ]