quixote package
Subpackages
Module contents
- quixote.get_context() Mapping[str, Any] [source]
Retrieve the current build context
- Returns
a mapping describing the current context
- quixote.new_context(**kwargs: Any) Mapping[str, Any] [source]
Create a new context for the duration of a with-block
- Parameters
kwargs – entries to initialize the context with
- Returns
the context
- class quixote.Builder(wrapped_function, **kwargs)[source]
Class wrapping a builder function, along with its configuration
- class quixote.Fetcher(wrapped_function, *, cached: bool = True, **kwargs)[source]
Class wrapping a fetcher function, along with its configuration
- class quixote.Inspector(wrapped_function, critical: bool = False, post_process: Optional[Callable[[], None]] = None, checklist_entry: Optional[str] = None, **kwargs)[source]
Class wrapping an inspector function, along with its configuration
- quixote.create_registries()[source]
Create registries for functions marked as builders, fetchers, and inspectors, for the duration of a with-block
- Returns
a tuple containing the three registries
- quixote.fetcher(*args, **kwargs)[source]
Decorator used to mark a function as a fetcher
- Parameters
cached – whether or not the data fetched should be cached (default is False)
- quixote.inspector(*args, **kwargs)[source]
Decorator used to mark a function as an inspector
- Parameters
critical – whether or not the inspection phase should be aborted if this step fails (default is False)
- class quixote.Blueprint(name: str, author: str, inspection_file: Optional[str] = None, allow_docker: bool = False, metadata: Optional[Any] = None)[source]
Class representing the blueprint of an automated-test job
- __init__(name: str, author: str, inspection_file: Optional[str] = None, allow_docker: bool = False, metadata: Optional[Any] = None)[source]
Create a blueprint
- Parameters
name – the name of the blueprint
author – the author of the blueprint
inspection_file – the file containing additional inspector functions (deprecated since 2.0)
allow_docker – whether a docker engine should be made available in the inspection step
metadata – custom metadata to attach to the blueprint