> ## 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.

# コードのテスト時に wandb を無効にできますか？

テスト時に W\&B を何も実行しない (NOOP) ように設定するには、`wandb.init(mode="disabled")` を使用するか、`WANDB_MODE=disabled` を設定します。

<Note>
  `wandb.init(mode="disabled")` を使用しても、W\&B が `WANDB_CACHE_DIR` に Artifacts を保存することは防げません。
</Note>

***

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