We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850a8cc commit 474d8b6Copy full SHA for 474d8b6
1 file changed
test/unit_test/headless/test_analysis_batch.py
@@ -25,13 +25,13 @@ def test_heal_stats_metrics():
25
assert stats["by_method"] == {"image": 1, "vlm": 2}
26
assert stats["fallbacks"] == 2
27
assert stats["fallback_rate"] == pytest.approx(round(2 / 3, 4))
28
- assert stats["avg_duration_ms"] == 30.0
+ assert stats["avg_duration_ms"] == pytest.approx(30.0)
29
assert stats["top_brittle"][0] == {"locator": "btn.png", "fallbacks": 2}
30
31
32
def test_heal_stats_empty():
33
stats = heal_stats([])
34
- assert stats["total"] == 0 and stats["heal_rate"] == 0.0
+ assert stats["total"] == 0 and stats["heal_rate"] == pytest.approx(0.0)
35
36
37
# --- secrets scan ---------------------------------------------------------
0 commit comments