Class | DataDrivenTestCase |
Holds parsed data-driven test cases, and handles directory setup and teardown. |
Class | DataFileCollector |
Represents a single .test data driven test file. |
Class | DataSuite |
No class docstring; 0/4 class variable, 1/2 method documented |
Class | DataSuiteCollector |
No class docstring; 1/1 method documented |
Class | TestItem |
Parsed test caseitem. |
Function | add_test_name_suffix |
Undocumented |
Function | collapse_line_continuation |
Undocumented |
Function | expand_errors |
Transform comments such as '# E: message' or '# E:3: message' in input. |
Function | expand_variables |
Undocumented |
Function | fix_cobertura_filename |
Changes filename paths to Linux paths in Cobertura output files. |
Function | fix_win_path |
Changes Windows paths to Linux paths in error messages. |
Function | has_stable_flags |
Undocumented |
Function | is_incremental |
Undocumented |
Function | module_from_path |
Undocumented |
Function | parse_test_case |
Parse and prepare a single case from suite with test case descriptions. |
Function | parse_test_data |
Parse a list of lines that represent a sequence of test items. |
Function | pytest_addoption |
Undocumented |
Function | pytest_pycollect_makeitem |
Called by pytest on each object in modules configured in conftest.py files. |
Function | split_test_cases |
Iterate over raw test cases in file, at collection time, ignoring sub items. |
Function | strip_list |
Return a stripped copy of l. |
Variable | DeleteFile |
Undocumented |
Variable | FileOperation |
Undocumented |
Variable | root_dir |
Undocumented |
Variable | UpdateFile |
Undocumented |
Transform comments such as '# E: message' or '# E:3: message' in input.
The result is lines like 'fnam:line: error: message'.
Parameters | |
input:List[ | Undocumented |
output:List[ | Undocumented |
fnam:str | Undocumented |
Changes filename paths to Linux paths in Cobertura output files.
E.g. filename="pkgsubpkga.py" -> filename="pkg/subpkg/a.py".
Parameters | |
line:str | Undocumented |
Returns | |
str | Undocumented |
Changes Windows paths to Linux paths in error messages.
E.g. foobar.py -> foo/bar.py.
Parameters | |
line:str | Undocumented |
Returns | |
str | Undocumented |
Parse and prepare a single case from suite with test case descriptions.
This method is part of the setup phase, just before the test case is run.
Parameters | |
case:DataDrivenTestCase | Undocumented |
Parameters | |
raw_data:str | Undocumented |
name:str | Undocumented |
Returns | |
List[ | Undocumented |
Called by pytest on each object in modules configured in conftest.py files.
collector is pytest.Collector, returns Optional[pytest.Class]
Parameters | |
collector:Any | Undocumented |
name:str | Undocumented |
obj:object | Undocumented |
Returns | |
Optional[ | Undocumented |
Iterate over raw test cases in file, at collection time, ignoring sub items.
The collection phase is slow, so any heavy processing should be deferred to after uninteresting tests are filtered (when using -k PATTERN switch).
Parameters | |
parent:DataFileCollector | Undocumented |
suite:DataSuite | Undocumented |
file:str | Undocumented |
Returns | |
Iterator[ | Undocumented |