Skip to content

Commit

Permalink
Fixed pytest deprecation warning because we accidantly return somethi…
Browse files Browse the repository at this point in the history
…ng from a test
  • Loading branch information
AKuederle committed Oct 4, 2023
1 parent 589a1bc commit a807395
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tpcp/testing/_algorithm_test_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ def test_nested_algo_marked_default(self):

def test_passes_safe_action_checks(self, after_action_instance):
"""Test that the algorithm passes the safe action checks."""
return make_action_safe(get_action_method(after_action_instance))(
# We just wrap the method and call it.
# We don't care about the return value
make_action_safe(get_action_method(after_action_instance))(
after_action_instance,
**get_action_params(after_action_instance),
)

0 comments on commit a807395

Please sign in to comment.