From f6e2a84f2b8787bf92c53608be6b6491b172f304 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:58:48 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_step.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_step.py b/tests/test_step.py index c31d236f..ea22e9be 100644 --- a/tests/test_step.py +++ b/tests/test_step.py @@ -448,7 +448,7 @@ def get_crds_parameters(self): def save(self, path, dir_path=None, *args, **kwargs): saveid = getattr(self, "saveid", None) if saveid is not None: - fname = saveid+"-saved.txt" + fname = saveid + "-saved.txt" with open(fname, "w") as f: f.write(f"{path}") return fname @@ -525,7 +525,9 @@ def save(self, path, dir_path=None, *args, **kwargs): model.save(path, dir_path, *args, **kwargs) -@pytest.mark.xfail(reason="Looping over models only works for list and tuple. This should be fixed.") +@pytest.mark.xfail( + reason="Looping over models only works for list and tuple. This should be fixed." +) def test_save_container(tmp_cwd, model_list): """ensure list-like save still works for non-list sequence""" container = SimpleContainer(model_list)