#!/usr/bin/env python
"""Simple offline run.

---
id: 0.offline.01-no-network
env:
  - WANDB_BASE_URL: https://does.not-resolve/
command:
  timeout: 20
plugin:
  - wandb
assert:
  - :wandb:runs_len: 0
  - :yea:exit: 0
"""

import wandb

wandb.init(mode="offline")
wandb.log(dict(m1=1))
wandb.log(dict(m2=2))
wandb.finish()

Add simple offline test (#2730)