Skip to content

Commit

Permalink
pytest: test to show that we got db ids incorrect.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Aug 30, 2023
1 parent e3b1549 commit b7f9124
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_runes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from fixtures import * # noqa: F401,F403
from fixtures import TEST_NETWORK
from pyln.client import RpcError
from utils import only_one
import base64
import os
import pytest
Expand Down Expand Up @@ -468,3 +469,13 @@ def test_commando_blacklist_migration(node_factory):
# Should match commando results!
assert l1.rpc.blacklistrune() == {'blacklist': [{'start': 0, 'end': 6},
{'start': 9, 'end': 9}]}


@pytest.mark.xfail(strict=True)
def test_showrune_id(node_factory):
l1 = node_factory.get_node()

rune = l1.rpc.createrune()['rune']

# Won't have stored: false
assert 'stored' not in only_one(l1.rpc.showrunes(rune)['runes'])

0 comments on commit b7f9124

Please sign in to comment.