Skip to content

Don't skip python integration test#1301

Open
spacebear21 wants to merge 1 commit intopayjoin:masterfrom
spacebear21:fix-python-integration-test
Open

Don't skip python integration test#1301
spacebear21 wants to merge 1 commit intopayjoin:masterfrom
spacebear21:fix-python-integration-test

Conversation

@spacebear21
Copy link
Collaborator

@spacebear21 spacebear21 commented Jan 27, 2026

This removes the skip block and copies the JS/dart integration tests approach for using primitive types instead of bitcoin types.

re: #1287 (comment)

Pull Request Checklist

Please confirm the following before requesting review:

This removes the skip block and copies the JS/dart integration tests
approach for using primitive types instead of bitcoin types
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 21396270742

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 83.203%

Totals Coverage Status
Change from base Build 21370318256: 0.0%
Covered Lines: 10140
Relevant Lines: 12187

💛 - Coveralls

Comment on lines -10 to -14
try:
import payjoin.bitcoin as bitcoinffi
except ImportError:
bitcoinffi = None
raise unittest.SkipTest("bitcoin_ffi helpers are not available in this binding")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Whats the rationale for not wanting to use bitcoin-ffi types in these tests? Seems like they are generally help reduce boilerplate e.g in IsScriptOwnedCallback.callback generating an address from spk.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a question for @chavic I think since iirc he authored the change

Copy link
Contributor

Choose a reason for hiding this comment

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

Also curious what the original rationale was since this seems intentional per #1287 (comment)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

payjoin-ffi now only accepts primitive data types and no longer re-exports bitcoin-ffi per #738, so import payjoin.bitcoin as bitcoinffi always errors. To reduce boilerplate I think each downstream language could use whatever bitcoin library exists in that language for common operations like script parsing, etc.

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.

4 participants