blitz_api/tests/routers/test_lightning_utils.py
Stefan Stammberger bd6d293259
fix: tests and simplify the test code
refs# 21
2021-11-19 17:28:39 +01:00

15 lines
409 B
Python

from app.models.lightning import LightningInfoLite
def get_valid_lightning_info_lite() -> LightningInfoLite:
return LightningInfoLite(
implementation="LND",
version="0.13.1",
num_pending_channels=1,
num_active_channels=4,
num_inactive_channels=2,
num_peers=3,
block_height=123456,
synced_to_chain=True,
synced_to_graph=True,
)