Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
ifrit98 committed Mar 8, 2024
1 parent 1e290ea commit 059ce21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit_tests/test_metagraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def test_sync_error_cases(block, test_id, metagraph_instance, mock_subtensor):
# Act & Assert
with pytest.raises(ValueError) as excinfo:
metagraph_instance.sync(block=block, lite=True, subtensor=mock_subtensor)
assert "Attempting to sync longer than 300 blocks ago on a non-archive node. Please use the 'archive' network for subtensor and retry." in str(
excinfo.value
assert (
"Attempting to sync longer than 300 blocks ago on a non-archive node. Please use the 'archive' network for subtensor and retry."
in str(excinfo.value)
), f"Test ID: {test_id}"

0 comments on commit 059ce21

Please sign in to comment.