File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 6
6
def test_properties_methods_comparable (other_class : "Subtensor" = None ):
7
7
"""Verifies that methods in SubtensorApi and its properties contains all Subtensors methods."""
8
8
# 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 )
11
15
12
16
subtensor_methods = [m for m in dir (subtensor ) if not m .startswith ("_" )]
13
17
@@ -62,8 +66,12 @@ def test__methods_comparable_with_passed_legacy_methods(
62
66
):
63
67
"""Verifies that methods in SubtensorApi contains all Subtensors methods if `legacy_methods=True` is passed."""
64
68
# 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 )
67
75
68
76
subtensor_methods = [m for m in dir (subtensor ) if not m .startswith ("_" )]
69
77
subtensor_api_methods = [m for m in dir (subtensor_api ) if not m .startswith ("_" )]
You can’t perform that action at this time.
0 commit comments