Skip to content
Snippets Groups Projects
Commit aa729110 authored by Henning Glawe's avatar Henning Glawe
Browse files

reformat with black

parent c39e1458
No related merge requests found
......@@ -87,7 +87,7 @@ def df_mountpoint(path: pathlib.Path) -> Tuple[int, int, int]:
return None, None, None
for line in output.splitlines():
df_fields = line.split()
if (df_fields[0] == "Filesystem"):
if df_fields[0] == "Filesystem":
continue
(size, used, avail) = [int(df_field) for df_field in df_fields[1:4]]
return size, used, avail
......
......@@ -54,7 +54,7 @@ def test_df_ceph(mocker):
def test_df_mountpoint(mocker):
mock = mocker.patch(
"subprocess.check_output",
return_value="Filesystem 1B-blocks Used Available Use% Mounted on\nsomedev 1000 500 500 1% /home/glawe\n".encode()
return_value="Filesystem 1B-blocks Used Available Use% Mounted on\nsomedev 1000 500 500 1% /home/glawe\n".encode(),
)
size, used, avail = quota.df_mountpoint("/home/MOCK")
assert isinstance(size, int)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment