Skip to content

test(2472): offline unittests #2596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 18, 2025
Merged

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