Skip to main content

Library to facilitate writing tests for for lightningd

Project description

pyln-testing: A library to write tests against c-lightning

This library implements a number of utilities that help building tests for c-lightning nodes. In particular it provides a number of pytest fixtures that allow the management of a test network of a given topology and then execute a test scenarion.

pyln-testing is used by c-lightning for its internal tests, and by the community plugin directory to exercise the plugins.

Installation

pyln-testing is available on pip:

pip install pyln-testing

Alternatively you can also install the development version to get access to currently unreleased features by checking out the c-lightning source code and installing into your python3 environment:

git clone https://github.com/ElementsProject/lightning.git
cd lightning/contrib/pyln-testing
python3 setup.py develop

This will add links to the library into your environment so changing the checked out source code will also result in the environment picking up these changes. Notice however that unreleased versions may change API without warning, so test thoroughly with the released version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyln-testing-0.0.2.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyln_testing-0.0.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file pyln-testing-0.0.2.tar.gz.

File metadata

  • Download URL: pyln-testing-0.0.2.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for pyln-testing-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bdce9069b9281999797d03523e5d1e8ab4316f8c17b707399c5e6a0aca28b48c
MD5 d3974492ae9dbe0872dfb883d6b9cd68
BLAKE2b-256 73f97a93184106e0274130d212353d32bfcf4784b46245733226704c57d4767d

See more details on using hashes here.

File details

Details for the file pyln_testing-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyln_testing-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for pyln_testing-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 937e714b7d03662eac8d4d64e18bd56e10ceceab482d281a71a40199978a8a6a
MD5 e7ac10b26eaea686fecc88884eef924a
BLAKE2b-256 bba4539ad82c51c441115cc87ce63b42bac66325c1dc991f3e104725bd9e800e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page