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 629b97c commit c30b8aaCopy full SHA for c30b8aa
tests/test_calibration.py
@@ -13,6 +13,13 @@
13
from nannyml.exceptions import InvalidArgumentsException
14
15
16
+@pytest.fixture(autouse=True)
17
+def calibrator_factory():
18
+ # hack our way out of singleton side effects in tests.
19
+ # we could replace this with a proper singleton pattern, but seems overkill for just tests?
20
+ CalibratorFactory._registry = {'isotonic': IsotonicCalibrator}
21
+
22
23
class DummyCalibrator(Mock):
24
def __init__(self, **kwargs):
25
super().__init__()
0 commit comments