Skip to content

Commit 03d4cf0

Browse files
[pre-commit.ci] Add auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dae749f commit 03d4cf0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/vec_inf/cli/test_cli.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _mock_truediv(*args):
153153
if str(other) == ".vec-inf-logs":
154154
return test_paths["log_dir"]
155155
return Path(str(other))
156-
156+
157157
# Normal case with self and other
158158
self, other = args
159159
if str(self) == str(test_paths["weights_dir"]) and other == "unknown-model":
@@ -211,13 +211,17 @@ def base_patches(test_paths, mock_truediv, debug_helper):
211211
patch("pathlib.Path.open", debug_helper.tracked_mock_open),
212212
patch("pathlib.Path.expanduser", return_value=test_paths["log_dir"]),
213213
patch("pathlib.Path.resolve", return_value=debug_helper.config_file.parent),
214-
patch("pathlib.Path.parent", return_value=debug_helper.config_file.parent.parent),
214+
patch(
215+
"pathlib.Path.parent", return_value=debug_helper.config_file.parent.parent
216+
),
215217
patch("pathlib.Path.__truediv__", side_effect=mock_truediv),
216218
patch("pathlib.Path.iterdir", return_value=[]), # Mock empty directory listing
217219
patch("json.dump"),
218220
patch("pathlib.Path.touch"),
219221
patch("vec_inf.cli._helper.Path", return_value=test_paths["weights_dir"]),
220-
patch("pathlib.Path.home", return_value=Path("/home/user")), # Mock home directory
222+
patch(
223+
"pathlib.Path.home", return_value=Path("/home/user")
224+
), # Mock home directory
221225
]
222226

223227

0 commit comments

Comments
 (0)