Skip to content

Commit

Permalink
prepend test_ to test functions (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewCaseres authored Jan 16, 2024
1 parent 8c0ab41 commit 633d730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chainladder/methods/tests/test_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, :]
Expand All @@ -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_

0 comments on commit 633d730

Please sign in to comment.