def METHOD_NAME(wandb_init, capsys, monkeypatch):
    """Test that footer includes job info when a job is created."""
    monkeypatch.setenv("WANDB_DOCKER", "hello-world")  # Needed to trigger job creation.
    run = wandb_init()
    run.log({"a": 1})
    run.finish()
    captured = capsys.readouterr()
    lines = captured.err.splitlines()
    for line in lines:
        if re.search(
            r"View job at http://localhost:8080/user-\w+-\w+/uncategorized/jobs/[\w=]+/version_details/v0",
            line,
        ):
            break
    else:
        raise AssertionError(f"Job URL not found in footer: {captured.err}")