From 633d730a94c6370a14712949169cdda6911a9204 Mon Sep 17 00:00:00 2001 From: Matthew Caseres Date: Tue, 16 Jan 2024 09:25:34 -0600 Subject: [PATCH] prepend test_ to test functions (#485) --- chainladder/methods/tests/test_predict.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chainladder/methods/tests/test_predict.py b/chainladder/methods/tests/test_predict.py index 7d575c57..482f8a15 100644 --- a/chainladder/methods/tests/test_predict.py +++ b/chainladder/methods/tests/test_predict.py @@ -111,7 +111,7 @@ def test_misaligned_index2(clrd): b = bcc.predict(clrd.iloc[150], sample_weight=w.iloc[150]).ultimate_.sum().sum() assert abs(a - b) < 1e-5 -def align_cdfs(): +def test_align_cdfs(): ld = cl.load_sample('raa').latest_diagonal*0+40000 model = cl.BornhuetterFerguson().fit(cl.load_sample('raa'), sample_weight=ld) a = model.ultimate_.iloc[..., :4, :] @@ -127,6 +127,6 @@ def align_cdfs(): assert a == b -def check_val_tri_cl(raa): +def test_check_val_tri_cl(raa): model = cl.Chainladder().fit(raa.dev_to_val()) assert model.predict(raa.latest_diagonal).ultimate_ == model.ultimate_ \ No newline at end of file