> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# コードのテスト中に W&B を無効にするにはどうすればよいですか？

テスト時に W\&B を no-op として動作させるには、`wandb.init(mode="disabled")` を使用するか、`WANDB_MODE=disabled` を設定します。

<Note>
  `wandb.init(mode="disabled")` を使用していても、W\&B は引き続きアーティファクトを `WANDB_CACHE_DIR` に保存します。
</Note>

***

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