source#
- source(name: str, *, when: str | dict[str, str] | None = None) None#
Source a shell rc file before a test is executed.
Usage#
.pyt:import canary canary.directives.source(name, when=...)
.vvt:NAParameters#
name: The name of the rc filewhen: Restrict processing of the directive to this condition
Examples#
import sys import canary canary.directives.source("setup-env.sh")
will source the
setup-env.shfile before the test is executed.