Skip to content

Commit

Permalink
Unit tests fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhaleking committed Dec 10, 2024
1 parent 769e962 commit a35276a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/unit_tests/test_subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,9 @@ def test_determine_chain_endpoint_and_network(
@pytest.fixture
def subtensor(mocker):
fake_substrate = mocker.MagicMock()
fake_substrate.websocket.sock.getsockopt.return_value = 0
mocker.patch.object(
subtensor_module, "SubstrateInterface", return_value=fake_substrate
)
fake_websocket = mocker.MagicMock()
fake_websocket.client.connect.return_value = 0 # TODO change this
mocker.patch.object(subtensor_module, "ws_client", return_value=fake_websocket)
return Subtensor()


Expand Down

0 comments on commit a35276a

Please sign in to comment.