Skip to content

test(2472): offline unittests#2596

Merged
zyzniewski-reef merged 5 commits intostagingfrom
fix/2472-offline_unittests
Feb 18, 2025
Merged

test(2472): offline unittests#2596
zyzniewski-reef merged 5 commits intostagingfrom
fix/2472-offline_unittests

Conversation

@zyzniewski-reef
Copy link
Contributor

@zyzniewski-reef zyzniewski-reef commented Jan 22, 2025

Bug

#2472

Description of the Change

  • mocking networking.get_external_ip
  • mocking SubstrateInterface to use mocked websockets ClientConnect
  • passing mocked websockets ClientConnect as a dependency to Subtensor
  • minor unittests restructure

Alternate Designs

Not extracting common fixtures and just copy & past fixes.

Possible Drawbacks

We're not testing networking.get_external_ip connectivity with all hardcoded known addresses.

Verification Process

Running unittests online & offline.

Release Notes

  • unittests working offline

@zyzniewski-reef zyzniewski-reef force-pushed the fix/2472-offline_unittests branch from b486ca3 to 79c85d4 Compare February 13, 2025 19:14
@zyzniewski-reef zyzniewski-reef merged commit 3db617d into staging Feb 18, 2025
32 checks passed
@zyzniewski-reef zyzniewski-reef deleted the fix/2472-offline_unittests branch February 18, 2025 19:13
@ibraheem-abe ibraheem-abe mentioned this pull request Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants