pytest: use pyln.client for functional tests

This commit is contained in:
darosior 2020-01-06 12:20:12 +01:00 committed by Christian Decker
parent a9f0f05eea
commit dc3aa33927
8 changed files with 34 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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