trlcdoc.convert
Convert the TRLC documents with pyTRLCConverter.
Attributes
Functions
|
Convert all TRLC documents into the given format. |
|
Convert one TRLC document. |
Module Contents
- trlcdoc.convert.LOG
- trlcdoc.convert.convert_documents(cfg: trlcdoc.config.Config, fmt: str) int[source]
Convert all TRLC documents into the given format.
- Parameters:
cfg (Config) – Project configuration.
fmt (str) – Output format, rst or markdown.
- Returns:
Number of converted documents.
- Return type:
int
- trlcdoc.convert.convert_document(cfg: trlcdoc.config.Config, doc: dict[str, Any], fmt: str) list[str][source]
Convert one TRLC document.
- Parameters:
cfg (Config) – Project configuration.
doc (dict[str, Any]) – Document of type trlc or test_results.
fmt (str) – Output format, rst or markdown.
- Returns:
The executed command.
- Return type:
list[str]
- Raises:
TrlcdocError – If the test results are missing or the conversion fails.