vw.lazy
Decorators that don’t evaluate until they are first invoked.
Functions
|
Decorator to make a function no-op if the current environment is a test environment. |
|
Decorator to make a function only run if the current environment is a test environment. |
Module Contents
- vw.lazy.no_op(func)
Decorator to make a function no-op if the current environment is a test environment.
- Args:
func (function): The function to decorate.
- Returns:
function: The decorated function.
- vw.lazy.tests_only(func)
Decorator to make a function only run if the current environment is a test environment.
- Args:
func (function): The function to decorate.
- Returns:
function: The decorated function.