Skip to content

Commit

Permalink
[fix] Fix failed_msg arg of assert_conversion function
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Mitrofanov <[email protected]>
  • Loading branch information
name212 committed Nov 28, 2024
1 parent b07ff1f commit 04b9d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deckhouse/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def assert_common_resource_fields(t: unittest.TestCase, obj: dict, api_version:
t.assertEqual(obj["metadata"]["namespace"], namespace)

# res: dict | typing.List[dict] | typing.Callable[[unittest.TestCase, typing.List[dict]], None]
def assert_conversion(t: unittest.TestCase, o: Output, res: typing.Union[dict, typing.List[dict], typing.Callable[[unittest.TestCase, typing.List[dict]], None]], failed_msg: str):
def assert_conversion(t: unittest.TestCase, o: Output, res: typing.Union[dict, typing.List[dict], typing.Callable[[unittest.TestCase, typing.List[dict]], None]], failed_msg: typing.Union[str, None]):
"""
Assert result of conversion webhook
Expand Down

0 comments on commit 04b9d0b

Please sign in to comment.