Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Apr 8, 2024
1 parent a36a584 commit 5631131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lnurl/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" lnurl CLI """
"""lnurl CLI"""

import json
import sys
Expand Down
8 changes: 2 additions & 6 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ def test_success_response(self, d):
res = LnurlPayResponse(**d)
assert res.ok
assert (
res.json()
== res.json(by_alias=True)
== '{"tag": "payRequest", "callback": "https://service.io/pay", '
res.json() == res.json(by_alias=True) == '{"tag": "payRequest", "callback": "https://service.io/pay", '
f'"minSendable": 1000, "maxSendable": 2000, "metadata": {json.dumps(metadata)}}}'
)
assert (
Expand Down Expand Up @@ -150,9 +148,7 @@ def test_success_response(self, d):
res = LnurlPayResponseComment(**d)
assert res.ok
assert (
res.json()
== res.json(by_alias=True)
== '{"tag": "payRequest", "callback": "https://service.io/pay", '
res.json() == res.json(by_alias=True) == '{"tag": "payRequest", "callback": "https://service.io/pay", '
f'"minSendable": 1000, "maxSendable": 2000, "metadata": {json.dumps(metadata)}, '
'"commentAllowed": 555}'
)
Expand Down

0 comments on commit 5631131

Please sign in to comment.