File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
tests/unit_tests/extrinsics Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ def test_publish_metadata(
355
355
patch .object (mock_subtensor .substrate , "compose_call" ),
356
356
patch .object (
357
357
mock_subtensor , "sign_and_send_extrinsic" , return_value = response_success
358
- ),
358
+ ) as mocked_sign_and_send_extrinsic ,
359
359
):
360
360
# Act
361
361
result = serving .publish_metadata (
@@ -369,3 +369,11 @@ def test_publish_metadata(
369
369
)
370
370
# Assert
371
371
assert result == expected_result , f"Test ID: { test_id } "
372
+ mocked_sign_and_send_extrinsic .assert_called_once_with (
373
+ call = mock_subtensor .substrate .compose_call .return_value ,
374
+ wallet = mock_wallet ,
375
+ sign_with = "hotkey" ,
376
+ wait_for_inclusion = wait_for_inclusion ,
377
+ wait_for_finalization = wait_for_finalization ,
378
+ period = None ,
379
+ )
You can’t perform that action at this time.
0 commit comments