The pytest config object.
A unique name within the scope of the parent node.
The parent collector node.
Filesystem path where this node was collected from (can be None).
The pytest session this node is part of.
Runs all the YAML tests contained in a file or a directory.
If path
is a directory, subdirectories will be recursively explored.
tax_benefit_system (TaxBenefitSystem
) – the tax-benefit system to use to run the tests.
paths (str
| Sequence
[str
]) – A path, or a list of paths, towards the files or directories containing the tests to run. If a path is a directory, subdirectories will be recursively explored.
options (Options
) – See more details below.
The number of successful tests executed.
:exc:`AssertionError` – if a test does not pass.
Testing options:
Key |
Type |
Role |
---|---|---|
verbose |
|
See openfisca test options doc |
name_filter |
|
Tests can also be run in the console with openfisca test.