test: fix all pylint issues
This commit is contained in:
parent
7f3dbb2e2d
commit
57b5c7994e
15 changed files with 18 additions and 35 deletions
|
|
@ -5,7 +5,6 @@
|
|||
#
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
|
|||
|
|
@ -212,10 +212,10 @@ def test_mount_with_partition(tmp_path):
|
|||
opts = {}
|
||||
# mount both partitions
|
||||
for i in range(1,3):
|
||||
mount = mounts.Mount(
|
||||
mount_opts = mounts.Mount(
|
||||
name=f"name-{i}", info=ext4_mod_info, device=dev,
|
||||
partition=i, target=f"/mnt-{i}", options=opts)
|
||||
mntmgr.mount(mount)
|
||||
mntmgr.mount(mount_opts)
|
||||
|
||||
# check that the both mounts actually happend
|
||||
output = subprocess.check_output(
|
||||
|
|
@ -227,4 +227,3 @@ def test_mount_with_partition(tmp_path):
|
|||
chld = lsblk_info["blockdevices"][0]["children"]
|
||||
assert chld[0]["mountpoints"] == [f"{mnt_base}/mnt-1"]
|
||||
assert chld[1]["mountpoints"] == [f"{mnt_base}/mnt-2"]
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
#
|
||||
|
||||
import json
|
||||
import tempfile
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import json
|
|||
import os
|
||||
import socketserver
|
||||
import subprocess
|
||||
import tempfile
|
||||
import threading
|
||||
|
||||
import pytest
|
||||
|
|
@ -66,7 +65,7 @@ def can_setup_netns() -> bool:
|
|||
try:
|
||||
with netns():
|
||||
return True
|
||||
except BaseException: # pylint: disable=bare-except
|
||||
except BaseException: # pylint: disable=broad-exception-caught
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
import contextlib
|
||||
import difflib
|
||||
import functools
|
||||
import glob
|
||||
import json
|
||||
import os
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue