Skip to content

Commit

Permalink
Format unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reidjohnson committed Sep 7, 2024
1 parent 02cef9b commit 167402a
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions quantile_forest/tests/test_quantile_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,12 @@ def test_predict_quantiles(
aggregate_leaves_first,
):
check_predict_quantiles(
name, max_samples, max_samples_leaf, quantiles, weighted_quantile, aggregate_leaves_first
name,
max_samples,
max_samples_leaf,
quantiles,
weighted_quantile,
aggregate_leaves_first,
)


Expand Down Expand Up @@ -1539,14 +1544,7 @@ def _dicts_to_input_pairs(input_dicts):

# Check error if invalid parameters.
assert_raises(TypeError, calc_weighted_quantile, [1, 2], [1, 1], 0.5)
assert_raises(
TypeError,
calc_weighted_quantile,
[1, 2],
[1, 1],
[0.5],
interpolation=None,
)
assert_raises(TypeError, calc_weighted_quantile, [1, 2], [1, 1], [0.5], interpolation=None)


def test_calc_quantile_rank():
Expand Down Expand Up @@ -1596,10 +1594,4 @@ def test_calc_quantile_rank():

# Check error if invalid parameters.
assert_raises(TypeError, calc_quantile_rank, [1, 2], [1])
assert_raises(
TypeError,
calc_quantile_rank,
[1, 2],
float(1),
kind=None,
)
assert_raises(TypeError, calc_quantile_rank, [1, 2], float(1), kind=None)

0 comments on commit 167402a

Please sign in to comment.