Skip to content
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

Add tests for sauron plugin #1

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

sip-21
Copy link

@sip-21 sip-21 commented Oct 4, 2024

  • Added tests for Sauron plugin using:
    • Esplora API
    • MutinyNet API (mempool.space)
    • Tor proxy configuration

@sip-21 sip-21 force-pushed the add-sauron-tests branch 2 times, most recently from 2492513 to 32f2553 Compare October 4, 2024 20:20
@sip-21
Copy link
Author

sip-21 commented Oct 4, 2024

Tests are probably not yet complete, but provide a base.

sauron/sauron.py Outdated
@@ -11,7 +11,7 @@

plugin = Plugin(dynamic=False)
plugin.sauron_socks_proxies = None
plugin.sauron_network = "test"
plugin.sauron_network = "bitcoin"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Seems like not a great idea to make mainnet the default?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upss, this was unintentional. A leftover from testing.
Fixed.

@ca-ruz
Copy link
Owner

ca-ruz commented Oct 5, 2024

@sip-21

Great! All tests for Blockstream Esplora passed. I also ran them locally and they also passed. Would be great if you can write some tests for Mutinynet.

@sip-21 sip-21 force-pushed the add-sauron-tests branch 3 times, most recently from 5ba626d to dc2e886 Compare October 8, 2024 04:16
@sip-21 sip-21 marked this pull request as ready for review October 8, 2024 04:18
@sip-21
Copy link
Author

sip-21 commented Oct 8, 2024

I ran ruff on the code and did some more cleanups.

@chrisguida
Copy link

@ca-ruz let's merge this and figure out the tests on the upstream PR

@ca-ruz ca-ruz merged commit 18f6e23 into ca-ruz:sauron-mutinynet Oct 8, 2024
1 of 7 checks passed
@ca-ruz
Copy link
Owner

ca-ruz commented Oct 8, 2024

Awesome @sip-21 Thanks for writing the tests for Sauron! Very thorough. Merged.

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.

3 participants