File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -68,21 +68,22 @@ def get_expected_configuration(
68
68
return result
69
69
70
70
71
+ def get_related_files (
72
+ tested_configuration_file : Union [str , Path ], suffix_filter : str
73
+ ) -> List [Path ]:
74
+ """Return all the file related to a test conf file endind with a suffix."""
75
+ conf_path = Path (tested_configuration_file )
76
+ return [
77
+ p
78
+ for p in conf_path .parent .iterdir ()
79
+ if str (p .stem ).startswith (conf_path .stem ) and str (p ).endswith (suffix_filter )
80
+ ]
81
+
82
+
71
83
def get_expected_output (
72
84
configuration_path : Union [str , Path ], user_specific_path : Path
73
85
) -> Tuple [int , str ]:
74
86
"""Get the expected output of a functional test."""
75
-
76
- def get_related_files (
77
- tested_configuration_file : Union [str , Path ], suffix_filter : str
78
- ) -> List [Path ]:
79
- conf_path = Path (tested_configuration_file )
80
- return [
81
- p
82
- for p in conf_path .parent .iterdir ()
83
- if str (p .stem ).startswith (conf_path .stem ) and str (p ).endswith (suffix_filter )
84
- ]
85
-
86
87
exit_code = 0
87
88
msg = (
88
89
"we expect a single file of the form "
You can’t perform that action at this time.
0 commit comments