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 d52b463 commit 655f799Copy full SHA for 655f799
1 file changed
test/unit_test/headless/test_slo_batch.py
@@ -28,8 +28,8 @@ def test_all_good_zero_burn():
28
29
def test_empty_is_full_budget():
30
report = evaluate_slo([], 0.99, now=1)
31
- assert report["sli"] == 1.0
32
- assert report["budget_remaining_fraction"] == 1.0
+ assert report["sli"] == pytest.approx(1.0)
+ assert report["budget_remaining_fraction"] == pytest.approx(1.0)
33
34
35
def test_bad_target_raises():
0 commit comments