tenseleyflow/sway / be3f1b7

Browse files

tests/unit: fix type-narrowing and unused-import in stats tests

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
be3f1b75aef82e7b11876028550a0c76ed38c51e
Parents
1013414
Tree
e2529ec

1 changed file

StatusFile+-
M tests/unit/test_stats.py 1 1
tests/unit/test_stats.pymodified
@@ -5,7 +5,6 @@ from __future__ import annotations
55
 import math
66
 
77
 import numpy as np
8
-import pytest
98
 
109
 from dlm_sway.core.stats import bootstrap_ci
1110
 
@@ -143,6 +142,7 @@ class TestProbeEmitsCi95:
143142
         ctx = RunContext(backend=backend)
144143
         result = probe.run(spec, ctx)
145144
         assert result.ci_95 is not None
145
+        assert result.raw is not None
146146
         lo, hi = result.ci_95
147147
         assert lo <= result.raw <= hi
148148
         # Evidence payload carries the same interval as a list.