Browse Source

pyln: Add unit tests from pyln-* to `make check-python`

travis-debug
Christian Decker 5 years ago
parent
commit
24219b38f9
  1. 3
      Makefile
  2. 9
      contrib/pylightning/lightning/__init__.py

3
Makefile

@ -314,9 +314,10 @@ check-python:
@# E501 line too long (N > 79 characters) @# E501 line too long (N > 79 characters)
@# E731 do not assign a lambda expression, use a def @# E731 do not assign a lambda expression, use a def
@# W503: line break before binary operator @# W503: line break before binary operator
@flake8 --ignore=E501,E731,W503 --exclude=contrib/pylightning/lightning/__init__.py ${PYSRC} @flake8 --ignore=E501,E731,W503 ${PYSRC}
PYTHONPATH=contrib/pyln-client:$$PYTHONPATH $(PYTEST) contrib/pyln-client/ PYTHONPATH=contrib/pyln-client:$$PYTHONPATH $(PYTEST) contrib/pyln-client/
PYTHONPATH=contrib/pyln-proto:$$PYTHONPATH $(PYTEST) contrib/pyln-proto/
check-includes: check-includes:
@tools/check-includes.sh @tools/check-includes.sh

9
contrib/pylightning/lightning/__init__.py

@ -1 +1,10 @@
from pyln.client import LightningRpc, RpcError, Millisatoshi, __version__, Plugin, monkey_patch from pyln.client import LightningRpc, RpcError, Millisatoshi, __version__, Plugin, monkey_patch
__all__ = [
"__version__",
"LightningRpc",
"RpcError",
"Millisatoshi",
"Plugin",
"monkey_patch",
]

Loading…
Cancel
Save