vw

Decorators no-op or be active depending on whether or not it is in a testing environment.

Submodules

Functions

is_test_env()

Return if it is a test environment.

clear_env_cache()

Clear the cache value of whether it is a test environment or not.

no_op(func)

Decorator to make a function a no-op if the current environment is a test environment.

tests_only(func)

Decorator to make a function a no-op if the current environment is a test environment.

Package Contents

vw.is_test_env()

Return if it is a test environment.

vw.clear_env_cache()

Clear the cache value of whether it is a test environment or not.

vw.no_op(func)

Decorator to make a function a no-op if the current environment is a test environment.

Args:

func (function): The function to decorate.

Returns:

function: The decorated function.

vw.tests_only(func)

Decorator to make a function a no-op if the current environment is a test environment.

Args:

func (function): The function to decorate.

Returns:

function: The decorated function.