Skip to content

Commit f2a8f65

Browse files
committed
Remove wandb HTML media test
1 parent f1ec0a5 commit f2a8f65

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

lib/levanter/tests/test_tracker.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -126,38 +126,3 @@ def log_artifact(self, artifact_path, *, name=None, type=None):
126126
assert truncated is not None
127127
assert len(truncated) <= 128
128128
assert re.fullmatch(r".+-[0-9a-f]{7}", truncated)
129-
130-
131-
def test_wandb_tracker_logs_html_media(monkeypatch, tmp_path):
132-
monkeypatch.setenv("WANDB_ERROR_REPORTING", "false")
133-
134-
import wandb
135-
136-
from levanter.tracker.wandb import WandbTracker
137-
138-
class FakeHtml:
139-
def __init__(self, path):
140-
self.path = path
141-
142-
class FakeRun:
143-
step = 0
144-
145-
def __init__(self):
146-
self.logged = []
147-
148-
def log(self, metrics, *, step=None, commit=None):
149-
self.logged.append((metrics, step, commit))
150-
151-
monkeypatch.setattr(wandb, "Html", FakeHtml)
152-
html_path = tmp_path / "backward_flow.html"
153-
html_path.write_text("<html></html>")
154-
run = FakeRun()
155-
tracker = WandbTracker(run)
156-
157-
tracker.log_html("backward_flow/dag", html_path, step=7, commit=False)
158-
159-
assert len(run.logged) == 1
160-
metrics, step, commit = run.logged[0]
161-
assert step == 7
162-
assert commit is False
163-
assert metrics["backward_flow/dag"].path == str(html_path)

0 commit comments

Comments
 (0)