Skip to content

Commit 5b7c65e

Browse files
committed
test(gradvac): cover beta setter success path for codecov
Made-with: Cursor
1 parent ff49582 commit 5b7c65e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/unit/aggregation/test_gradvac.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def test_beta_setter_out_of_range() -> None:
3535
g.beta = 1.1
3636

3737

38+
def test_beta_setter_updates_value() -> None:
39+
g = GradVac()
40+
g.beta = 0.25
41+
assert g.beta == 0.25
42+
43+
3844
def test_eps_rejects_negative() -> None:
3945
with raises(ValueError, match="eps"):
4046
GradVac(eps=-1e-9)

0 commit comments

Comments
 (0)