> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-wbdocs-1882.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Can I turn off wandb when testing my code?

Use `wandb.init(mode="disabled")` or set `WANDB_MODE=disabled` to configure W\&B as a no-operation (NOOP) for testing purposes.

<Note>
  Using `wandb.init(mode="disabled")` does not prevent W\&B from saving artifacts to `WANDB_CACHE_DIR`.
</Note>

***

<Badge stroke shape="pill" color="orange" size="md">[Artifacts](/support/models/tags/artifacts)</Badge>
