backup: fix flake8 code nits

This commit is contained in:
Michael Schmoock
2022-12-27 13:52:45 +01:00
committed by Christian Decker
parent 7953dc0011
commit 7f18073a3a
6 changed files with 53 additions and 25 deletions

View File

@@ -1,5 +1,4 @@
from backend import Backend
from filebackend import FileBackend
import socketbackend
from flaky import flaky
from pyln.testing.fixtures import * # noqa: F401,F403
@@ -7,6 +6,7 @@ from pyln.testing.utils import sync_blockheight
import os
import pytest
import subprocess
import tempfile
plugin_dir = os.path.dirname(__file__)
@@ -236,6 +236,7 @@ class DummyBackend(Backend):
def __init__(self):
pass
def test_rewrite():
tests = [
(
@@ -281,6 +282,7 @@ def test_compact(bitcoind, directory, node_factory):
tmp = tempfile.TemporaryDirectory()
subprocess.check_call([cli_path, "restore", bdest, tmp.name])
def test_parse_socket_url():
with pytest.raises(ValueError):
# fail: invalid url scheme