Skip to content

Commit

Permalink
fix; removed unused check if type is a tuple after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MagdalenaKotynia committed Feb 26, 2025
1 parent beeec2a commit 2887afd
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tests/rai_sim/test_o3de_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,18 +313,11 @@ def test_receive_message_signature(self):

for param_name, expected_type in expected_params.items():
param = parameters[param_name]
if isinstance(expected_type, tuple):
self.assertIn(
param.annotation,
expected_type,
f"Parameter '{param_name}' has incorrect type, expected one of {expected_type}, got: {param.annotation}",
)
else:
self.assertIs(
param.annotation,
expected_type,
f"Parameter '{param_name}' has incorrect type, expected: {expected_type}, got: {param.annotation}",
)
self.assertIs(
param.annotation,
expected_type,
f"Parameter '{param_name}' has incorrect type, expected: {expected_type}, got: {param.annotation}",
)

self.assertIs(
signature.return_annotation,
Expand Down

0 comments on commit 2887afd

Please sign in to comment.