Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll committed Aug 11, 2024
1 parent dc8b83c commit aa69c2e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/py/flwr/server/strategy/bulyan_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,5 @@ def test_aggregate_fit() -> None:
actual_list = parameters_to_ndarrays(actual_aggregated)
actual = actual_list[0]
assert (actual == expected[0]).all()
raise ValueError("aggregate_fit function returned None")
else:
raise ValueError("aggregate_fit function returned None")
3 changes: 2 additions & 1 deletion src/py/flwr/server/strategy/fedadagrad_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ def test_aggregate_fit() -> None:
actual_list = parameters_to_ndarrays(actual_aggregated)
actual = actual_list[0]
assert (actual == expected[0]).all()
raise ValueError("aggregate_fit function returned None")
else:
raise ValueError("aggregate_fit function returned None")
3 changes: 2 additions & 1 deletion src/py/flwr/server/strategy/fedmedian_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,5 @@ def test_aggregate_fit() -> None:
actual_list = parameters_to_ndarrays(actual_aggregated)
actual = actual_list[0]
assert (actual == expected[0]).all()
raise ValueError("aggregate_fit function returned None")
else:
raise ValueError("aggregate_fit function returned None")
3 changes: 2 additions & 1 deletion src/py/flwr/server/strategy/krum_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,5 @@ def test_aggregate_fit() -> None:
actual_list = parameters_to_ndarrays(actual_aggregated)
actual = actual_list[0]
assert (actual == expected[0]).all()
raise ValueError("aggregate_fit function returned None")
else:
raise ValueError("aggregate_fit function returned None")
3 changes: 2 additions & 1 deletion src/py/flwr/server/strategy/multikrum_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ def test_aggregate_fit() -> None:
actual_list = parameters_to_ndarrays(actual_aggregated)
actual = actual_list[0]
assert (actual == expected[0]).all()
raise ValueError("aggregate_fit function returned None")
else:
raise ValueError("aggregate_fit function returned None")

0 comments on commit aa69c2e

Please sign in to comment.