Skip to content

Commit c37f08a

Browse files
committed
fix(tests): Remove exception handling in method call to ensure proper error reporting (/2)
1 parent 28d56ad commit c37f08a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/services/base_service_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,9 @@ def test_parameter_forwarding_for_all_methods(self):
508508

509509
# Call the method if it has parameters
510510
if kwargs:
511-
try:
512-
method(**kwargs)
513-
except Exception:
514-
pass # We expect it might fail, we just want to check the call
511+
method(
512+
**kwargs
513+
) # We expect it might fail, we just want to check the call
515514

516515
# Verify operator.call was invoked and parameters forwarded correctly
517516
if mock_operator_instance.call.called:

0 commit comments

Comments
 (0)