skip_on_missing_imports

skip_on_missing_imports(modules: str | Iterable[str], dep_target: str) -> Callable[[~T], ~T]
Decorator to skip a test if an optional module is missing Parameters:
NameDescription
modulesModule name or list of module names

Type: str | Iterable[str]
dep_targetTarget name for pip installation (e.g.

‘test’ in pip install ag2[test])

Type: str