Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 10, 2024
1 parent f9be7e7 commit f6e2a84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f6e2a84

Please sign in to comment.