Skip to content

Commit 0b8c20e

Browse files
committed
updates exception checking for upcoming change
1 parent 0bb7644 commit 0b8c20e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/e2e_tests/test_commitment.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ def test_commitment(subtensor, alice_wallet, dave_wallet):
2424
]
2525
dave_sn.execute_steps(steps)
2626

27-
with pytest.raises(SubstrateRequestException, match="AccountNotAllowedCommit"):
27+
with pytest.raises(
28+
SubstrateRequestException,
29+
match=r"AccountNotAllowedCommit|Invalid signing address",
30+
):
2831
subtensor.commitments.set_commitment(
2932
wallet=alice_wallet,
3033
netuid=dave_sn.netuid,
@@ -89,7 +92,10 @@ async def test_commitment_async(async_subtensor, alice_wallet, dave_wallet):
8992
]
9093
await dave_sn.async_execute_steps(steps)
9194

92-
with pytest.raises(SubstrateRequestException, match="AccountNotAllowedCommit"):
95+
with pytest.raises(
96+
SubstrateRequestException,
97+
match=r"AccountNotAllowedCommit|Invalid signing address",
98+
):
9399
await async_subtensor.commitments.set_commitment(
94100
wallet=alice_wallet,
95101
netuid=dave_sn.netuid,

0 commit comments

Comments
 (0)