File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
bittensor/core/extrinsics
tests/unit_tests/extrinsics Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,7 @@ async def publish_metadata(
282
282
success , message = await subtensor .sign_and_send_extrinsic (
283
283
call = call ,
284
284
wallet = wallet ,
285
+ sign_with = "hotkey" ,
285
286
wait_for_inclusion = wait_for_inclusion ,
286
287
wait_for_finalization = wait_for_finalization ,
287
288
period = period ,
Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ def publish_metadata(
278
278
success , message = subtensor .sign_and_send_extrinsic (
279
279
call = call ,
280
280
wallet = wallet ,
281
+ sign_with = "hotkey" ,
281
282
wait_for_inclusion = wait_for_inclusion ,
282
283
wait_for_finalization = wait_for_finalization ,
283
284
period = period ,
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