mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
pytest: use pyln.client for functional tests
This commit is contained in:
parent
a9f0f05eea
commit
dc3aa33927
@ -1,7 +1,10 @@
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from flaky import flaky
|
||||
from lightning import RpcError
|
||||
from utils import only_one, sync_blockheight, wait_for, DEVELOPER, TIMEOUT, VALGRIND, SLOW_MACHINE, COMPAT
|
||||
from pyln.client import RpcError
|
||||
from utils import (
|
||||
only_one, sync_blockheight, wait_for, DEVELOPER, TIMEOUT, VALGRIND,
|
||||
SLOW_MACHINE, COMPAT
|
||||
)
|
||||
|
||||
import os
|
||||
import queue
|
||||
|
@ -3,8 +3,11 @@ from decimal import Decimal
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from fixtures import TEST_NETWORK
|
||||
from flaky import flaky # noqa: F401
|
||||
from lightning import RpcError
|
||||
from utils import DEVELOPER, only_one, wait_for, sync_blockheight, VALGRIND, TIMEOUT, SLOW_MACHINE, COMPAT, expected_features
|
||||
from pyln.client import RpcError
|
||||
from utils import (
|
||||
DEVELOPER, only_one, wait_for, sync_blockheight, VALGRIND, TIMEOUT,
|
||||
SLOW_MACHINE, COMPAT, expected_features
|
||||
)
|
||||
from bitcoin.core import CMutableTransaction, CMutableTxOut
|
||||
|
||||
import binascii
|
||||
|
@ -2,8 +2,10 @@ from collections import Counter
|
||||
from ephemeral_port_reserve import reserve
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from fixtures import TEST_NETWORK
|
||||
from lightning import RpcError
|
||||
from utils import wait_for, TIMEOUT, only_one, sync_blockheight, expected_features
|
||||
from pyln.client import RpcError
|
||||
from utils import (
|
||||
wait_for, TIMEOUT, only_one, sync_blockheight, expected_features
|
||||
)
|
||||
|
||||
import json
|
||||
import logging
|
||||
|
@ -1,6 +1,6 @@
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from fixtures import TEST_NETWORK
|
||||
from lightning import RpcError
|
||||
from pyln.client import RpcError
|
||||
from utils import only_one, DEVELOPER, wait_for, wait_channel_quiescent
|
||||
|
||||
|
||||
|
@ -3,9 +3,12 @@ from decimal import Decimal
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from fixtures import LightningNode, TEST_NETWORK
|
||||
from flaky import flaky # noqa: F401
|
||||
from lightning import RpcError
|
||||
from pyln.client import RpcError
|
||||
from threading import Event
|
||||
from pyln.testing.utils import DEVELOPER, TIMEOUT, VALGRIND, sync_blockheight, only_one, wait_for, TailableProc, env
|
||||
from pyln.testing.utils import (
|
||||
DEVELOPER, TIMEOUT, VALGRIND, sync_blockheight, only_one, wait_for,
|
||||
TailableProc, env
|
||||
)
|
||||
from ephemeral_port_reserve import reserve
|
||||
|
||||
import json
|
||||
|
@ -2,8 +2,11 @@ from binascii import hexlify
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from fixtures import TEST_NETWORK
|
||||
from flaky import flaky # noqa: F401
|
||||
from lightning import RpcError, Millisatoshi
|
||||
from utils import DEVELOPER, wait_for, only_one, sync_blockheight, SLOW_MACHINE, TIMEOUT, VALGRIND
|
||||
from pyln.client import RpcError, Millisatoshi
|
||||
from utils import (
|
||||
DEVELOPER, wait_for, only_one, sync_blockheight, SLOW_MACHINE, TIMEOUT,
|
||||
VALGRIND
|
||||
)
|
||||
|
||||
import concurrent.futures
|
||||
import copy
|
||||
|
@ -1,8 +1,10 @@
|
||||
from collections import OrderedDict
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from flaky import flaky # noqa: F401
|
||||
from lightning import RpcError, Millisatoshi
|
||||
from utils import DEVELOPER, only_one, sync_blockheight, TIMEOUT, wait_for, TEST_NETWORK
|
||||
from pyln.client import RpcError, Millisatoshi
|
||||
from utils import (
|
||||
DEVELOPER, only_one, sync_blockheight, TIMEOUT, wait_for, TEST_NETWORK
|
||||
)
|
||||
|
||||
import json
|
||||
import os
|
||||
|
@ -2,8 +2,11 @@ from decimal import Decimal
|
||||
from fixtures import * # noqa: F401,F403
|
||||
from fixtures import TEST_NETWORK
|
||||
from flaky import flaky # noqa: F401
|
||||
from lightning import RpcError, Millisatoshi
|
||||
from utils import only_one, wait_for, sync_blockheight, EXPERIMENTAL_FEATURES, COMPAT, VALGRIND
|
||||
from pyln.client import RpcError, Millisatoshi
|
||||
from utils import (
|
||||
only_one, wait_for, sync_blockheight, EXPERIMENTAL_FEATURES, COMPAT,
|
||||
VALGRIND
|
||||
)
|
||||
|
||||
import os
|
||||
import pytest
|
||||
|
Loading…
Reference in New Issue
Block a user