Skip to content

Commit b28d153

Browse files
author
Roman
committed
replace network
1 parent 343cf4c commit b28d153

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tests/unit_tests/test_subtensor_api.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
def test_properties_methods_comparable(other_class: "Subtensor" = None):
77
"""Verifies that methods in SubtensorApi and its properties contains all Subtensors methods."""
88
# Preps
9-
subtensor = other_class(_mock=True) if other_class else Subtensor(_mock=True)
10-
subtensor_api = SubtensorApi(mock=True)
9+
subtensor = (
10+
other_class(network="latent-lite", _mock=True)
11+
if other_class
12+
else Subtensor(network="latent-lite", _mock=True)
13+
)
14+
subtensor_api = SubtensorApi(network="latent-lite", mock=True)
1115

1216
subtensor_methods = [m for m in dir(subtensor) if not m.startswith("_")]
1317

@@ -62,8 +66,12 @@ def test__methods_comparable_with_passed_legacy_methods(
6266
):
6367
"""Verifies that methods in SubtensorApi contains all Subtensors methods if `legacy_methods=True` is passed."""
6468
# Preps
65-
subtensor = other_class(mock=True) if other_class else Subtensor(_mock=True)
66-
subtensor_api = SubtensorApi(mock=True, legacy_methods=True)
69+
subtensor = (
70+
other_class(network="latent-lite", mock=True)
71+
if other_class
72+
else Subtensor(network="latent-lite", _mock=True)
73+
)
74+
subtensor_api = SubtensorApi(network="latent-lite", mock=True, legacy_methods=True)
6775

6876
subtensor_methods = [m for m in dir(subtensor) if not m.startswith("_")]
6977
subtensor_api_methods = [m for m in dir(subtensor_api) if not m.startswith("_")]

0 commit comments

Comments
 (0)