load_module#
- load_module(name: str, *, use: str | None = None, when: str | dict[str, str] | None = None) None#
Load a module before a test is executed.
Usage#
.pyt:import canary canary.directives.load_module(name, when=..., use=...)
.vvt:NAParameters#
name: The name of the moduleuse: Add this directory toMODULEPATHwhen: Restrict processing of the directive to this condition
Examples#
import sys import canary canary.directives.load_module("gcc")
will load the
gccmodule before the test is executed.