Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Oct 10, 2023
1 parent d446882 commit 740cb4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_bolt11_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ def test_example_2(self):
assert decoded.currency == ex["currency"]
assert decoded.date == ex["date"]
assert decoded.dt == datetime.fromtimestamp(ex["date"])
assert decoded.date_time == datetime.fromtimestamp(ex["date"])
assert decoded.expiry == ex["expiry"]
assert decoded.expiry_date == datetime.fromtimestamp(ex["date"] + ex["expiry"])
assert decoded.expiry_time == ex["date"] + ex["expiry"]
assert decoded.payment_hash == ex["payment_hash"]
assert decoded.payment_secret == ex["payment_secret"]
assert decoded.amount_msat == ex["amount_msat"]
Expand Down

0 comments on commit 740cb4c

Please sign in to comment.