gudnuf / bolt12-prism

CLN plugin for lightning prisms using BOLT 12
15 stars 5 forks source link

Add initial pytest framework. #84

Closed farscapian closed 4 months ago

farscapian commented 4 months ago

This PR includes VERY BASIC tests for the BOLT12 prism plugin. Future PRs will flesh out additional test cases to ensure coverage. This PR also has a Dockerfile having everything needed to run pytest on the prism plugin. Just run_tests.sh and it'll build the image and run the tests. Run this before merging into main!

This PR also includes a small update placing imports in a try/catch block.