gl-sdk 0.4.0

High-level SDK for Greenlight with UniFFI language bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Testing client-scheduler interactions"""

import pytest
import glsdk
from gltesting.fixtures import *


def test_register(scheduler, clients):
    signer = glsdk.Signer(" ".join(["abandon"] * 11 + ["about"]))
    signer.start()

    # Check that the derived node_id matches the Signer seed phrase.
    assert (
        signer.node_id().hex()
        == "03653e90c1ce4660fd8505dd6d643356e93cfe202af109d382787639dd5890e87d"
    )