pytest: Remove test_lightningd and all the legacy testing framework

This commit is contained in:
Christian Decker
2018-08-04 12:35:03 +02:00
committed by Rusty Russell
parent d3731b08b1
commit ae99e493b8
4 changed files with 9 additions and 286 deletions

View File

@@ -1,12 +1,14 @@
from concurrent import futures
from fixtures import * # noqa: F401,F403
from time import time
from tqdm import tqdm
import logging
import pytest
import random
import utils
from concurrent import futures
from test_lightningd import NodeFactory
from time import time
from tqdm import tqdm
num_workers = 480
num_payments = 10000
@@ -38,13 +40,6 @@ def bitcoind():
bitcoind.proc.wait()
@pytest.fixture
def node_factory(request, bitcoind, executor):
nf = NodeFactory(request.node.name, bitcoind, executor)
yield nf
nf.killall([False] * len(nf.nodes))
def test_single_hop(node_factory, executor):
l1 = node_factory.get_node()
l2 = node_factory.get_node()