1616
1717@pytest .mark .asyncio
1818async def test_legacy_decoding ():
19+ print ("Testing test_legacy_decoding" )
1920 # roughly 4000 blocks before metadata v15 was added
2021 pre_metadata_v15_block = 3_010_611
2122
@@ -39,10 +40,12 @@ async def test_legacy_decoding():
3940 block_hash = block_hash ,
4041 )
4142 assert timestamp .value == 1716358476004
43+ print ("test_legacy_decoding succeeded" )
4244
4345
4446@pytest .mark .asyncio
4547async def test_ss58_conversion ():
48+ print ("Testing test_ss58_conversion" )
4649 async with AsyncSubstrateInterface (
4750 LATENT_LITE_ENTRYPOINT , ss58_format = 42 , decode_ss58 = False
4851 ) as substrate :
@@ -79,10 +82,12 @@ async def test_ss58_conversion():
7982 if len (value .value ) > 0 :
8083 for decoded_key in value .value :
8184 assert isinstance (decoded_key , str )
85+ print ("test_ss58_conversion succeeded" )
8286
8387
8488@pytest .mark .asyncio
8589async def test_fully_exhaust_query_map ():
90+ print ("Testing test_fully_exhaust_query_map" )
8691 async with AsyncSubstrateInterface (LATENT_LITE_ENTRYPOINT ) as substrate :
8792 block_hash = await substrate .get_chain_finalised_head ()
8893 non_fully_exhauster_start = time .time ()
@@ -121,10 +126,12 @@ async def test_fully_exhaust_query_map():
121126 fully_exhausted_records_count += 1
122127 assert fully_exhausted_records_count == initial_records_count_fully_exhaust
123128 assert initial_records_count_fully_exhaust == exhausted_records_count
129+ print ("test_fully_exhaust_query_map succeeded" )
124130
125131
126132@pytest .mark .asyncio
127133async def test_get_events_proper_decoding ():
134+ print ("Testing test_get_events_proper_decoding" )
128135 # known block/hash pair that has the events we seek to decode
129136 block = 5846788
130137 block_hash = "0x0a1c45063a59b934bfee827caa25385e60d5ec1fd8566a58b5cc4affc4eec412"
@@ -137,10 +144,12 @@ async def test_get_events_proper_decoding():
137144 30 ,
138145 "0xa6b4e5c8241d60ece0c25056b19f7d21ae845269fc771ad46bf3e011865129a5" ,
139146 )
147+ print ("test_get_events_proper_decoding succeeded" )
140148
141149
142150@pytest .mark .asyncio
143151async def test_query_multiple ():
152+ print ("Testing test_query_multiple" )
144153 block = 6153277
145154 cks = [
146155 "5FH9AQM4kqbkdC9jyV5FrdEWVYt41nkhFstop7Vhyfb9ZsXt" ,
@@ -155,21 +164,25 @@ async def test_query_multiple():
155164 storage_function = "OwnedHotkeys" ,
156165 block_hash = block_hash ,
157166 )
167+ print ("test_query_multiple succeeded" )
158168
159169
160170@pytest .mark .asyncio
161171async def test_reconnection ():
172+ print ("Testing test_reconnection" )
162173 async with AsyncSubstrateInterface (
163174 ARCHIVE_ENTRYPOINT , ss58_format = 42 , retry_timeout = 8.0
164175 ) as substrate :
165176 await asyncio .sleep (9 ) # sleep for longer than the retry timeout
166177 bh = await substrate .get_chain_finalised_head ()
167178 assert isinstance (bh , str )
168179 assert isinstance (await substrate .get_block_number (bh ), int )
180+ print ("test_reconnection succeeded" )
169181
170182
171183@pytest .mark .asyncio
172184async def test_query_map_with_odd_number_of_params ():
185+ print ("Testing test_query_map_with_odd_number_of_params" )
173186 async with AsyncSubstrateInterface (ARCHIVE_ENTRYPOINT , ss58_format = 42 ) as substrate :
174187 qm = await substrate .query_map (
175188 "SubtensorModule" ,
@@ -179,10 +192,12 @@ async def test_query_map_with_odd_number_of_params():
179192 first_record = qm .records [0 ]
180193 assert len (first_record ) == 2
181194 assert len (first_record [0 ]) == 4
195+ print ("test_query_map_with_odd_number_of_params succeeded" )
182196
183197
184198@pytest .mark .asyncio
185199async def test_improved_reconnection ():
200+ print ("Testing test_improved_reconnection" )
186201 ws_logger_path = "/tmp/websockets-proxy-test"
187202 ws_logger = logging .getLogger ("websockets.proxy" )
188203 if os .path .exists (ws_logger_path ):
@@ -236,10 +251,12 @@ async def test_improved_reconnection():
236251 shutdown_thread .start ()
237252 shutdown_thread .join (timeout = 5 )
238253 server_thread .join (timeout = 5 )
254+ print ("test_improved_reconnection succeeded" )
239255
240256
241257@pytest .mark .asyncio
242258async def test_get_payment_info ():
259+ print ("Testing test_get_payment_info" )
243260 alice_coldkey = bittensor_wallet .Keypair .create_from_uri ("//Alice" )
244261 bob_coldkey = bittensor_wallet .Keypair .create_from_uri ("//Bob" )
245262 async with AsyncSubstrateInterface (
@@ -275,3 +292,4 @@ async def test_get_payment_info():
275292 partial_fee_all_options = payment_info_all_options ["partial_fee" ]
276293 assert partial_fee_all_options > partial_fee_no_era
277294 assert partial_fee_all_options > partial_fee_era
295+ print ("test_get_payment_info succeeded" )
0 commit comments