module documentation
Utility functions for configuration testing.
Function | get |
Get the expected parsed configuration of a configuration functional test. |
Function | get |
Return the expected value from the file if it exists, or the given default. |
Function | get |
Get the expected output of a functional test. |
Function | get |
Return all the file related to a test conf file ending with a suffix. |
Function | run |
Simulate a run with a configuration without really launching the checks. |
Constant | EXPECTED |
Undocumented |
Constant | EXPECTED |
Undocumented |
Type Alias |
|
Undocumented |
def get_expected_configuration(configuration_path:
str
, default_configuration: PylintConfiguration
) -> PylintConfiguration
:
(source)
¶
Get the expected parsed configuration of a configuration functional test.
def get_expected_or_default(tested_configuration_file:
str|Path
, suffix: str
, default: str
) -> str
:
(source)
¶
Return the expected value from the file if it exists, or the given default.
def get_expected_output(configuration_path:
str|Path
, user_specific_path: Path
) -> tuple[ int, str]
:
(source)
¶
Get the expected output of a functional test.
def get_related_files(tested_configuration_file:
str|Path
, suffix_filter: str
) -> list[ Path]
:
(source)
¶
Return all the file related to a test conf file ending with a suffix.