project_config.reporters package
Error reporters.
- exception project_config.reporters.InvalidNotBasedThirdPartyReporter(message: str)[source]
Bases:
project_config.exceptions.ProjectConfigException
Reporter not based on base reporter class.
All reporters must be based on the base reporter class :py::class:
project_config.reporters.base.BaseReporter
.
- exception project_config.reporters.InvalidThirdPartyReportersModule(message: str)[source]
Bases:
project_config.exceptions.ProjectConfigException
Third party reporters module is invalid.
Third party reporters module must expose a color and a black/white reporter.
- class project_config.reporters.ThirdPartyReporters[source]
Bases:
object
Third party reporters loader from entrypoints.
- instance: Optional[project_config.reporters.ThirdPartyReporters] = <project_config.reporters.ThirdPartyReporters object>
- load(reporter_name: str) module [source]
Load a third party reporter.
- Parameters
reporter_name (str) – Reporter module entrypoint name.
- project_config.reporters.get_reporter(reporter_name: str, reporter_kwargs: Dict[str, Any], color: Optional[bool], rootdir: str) Any [source]
Reporters factory.
- project_config.reporters.parse_reporter_id(value: str) Tuple[str, Dict[str, Any]] [source]
Parse a reporter identifier.
Returns the reporter name and the optional arguments for his class.
- Parameters
value (str) – Reporter identifier.