Skip to content

Commit b997985

Browse files
author
Roman
committed
fix tests
1 parent f5a659f commit b997985

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit_tests/extrinsics/test__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ def test_format_error_message_with_right_error_message():
2222
# Assertions
2323

2424
assert (
25-
result
26-
== "Subtensor returned `SomeErrorName(SomeType)` error. This means: `Some error description. I'm second part. Hah, I'm the last one.`."
25+
result == "Subtensor returned `SomeErrorName(SomeType)` error. "
26+
"This means: `Some error description. I'm second part. Hah, I'm the last one."
27+
" | Please consult https://docs.bittensor.com/errors/subtensor#someerrorname`."
2728
)
2829

2930

@@ -79,8 +80,7 @@ def test_format_error_message_with_custom_error_message_with_index():
7980
assert (
8081
result
8182
== f"Subtensor returned `SubstrateRequestException({fake_subtensor_error['name']})` error. This means: "
82-
f"`{fake_custom_error['data']} | Please consult "
83-
f"https://docs.bittensor.com/subtensor-nodes/subtensor-error-messages`."
83+
f"`{fake_custom_error['data']} | Please consult https://docs.bittensor.com/errors/custom`."
8484
)
8585

8686

0 commit comments

Comments
 (0)