Fix sync tests in CI
@@ -618,6 +618,8 @@ def test_enable_off(runner, git_repo):
@pytest.mark.vcr()
def test_sync(runner, git_repo):
+ # Un comment this line when re-recording the cassette
+ os.environ['WANDB_API_KEY'] = DUMMY_API_KEY
with open("wandb-history.jsonl", "w") as f:
f.write('{"acc":25}')
result = runner.invoke(cli.sync, ["--id", "7ojulnsc", "."])
@@ -629,6 +631,8 @@ def test_sync(runner, git_repo):
@pytest.mark.vcr()
def test_sync_tensorboard_ignore(runner, git_repo):
+ # Un comment this line when re-recording the cassette
+ os.environ['WANDB_API_KEY'] = DUMMY_API_KEY
wandb.util.mkdir_exists_ok("logs/train")
wandb.util.mkdir_exists_ok("logs/val")
with open("logs/garbage.txt", "w") as f:
