Skip to content

Commit ea913ce

Browse files
Merge pull request #2713 from opentensor/tests/zyzniewski/more_subtensor_unittests
More Subtensor unnitests
2 parents 4f82168 + e343a72 commit ea913ce

File tree

2 files changed

+1538
-3
lines changed

2 files changed

+1538
-3
lines changed

tests/unit_tests/extrinsics/test_root.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,12 @@ def test_set_root_weights_extrinsic(
152152
mocker,
153153
):
154154
# Preps
155-
root._do_set_root_weights = mocker.Mock(
156-
return_value=(expected_success, "Mock error")
155+
mocker.patch.object(
156+
root, "_do_set_root_weights", return_value=(expected_success, "Mock error")
157157
)
158-
root._get_limits = mocker.Mock(
158+
mocker.patch.object(
159+
root,
160+
"_get_limits",
159161
return_value=(0, 1),
160162
)
161163

0 commit comments

Comments
 (0)