Skip to content

Commit e276608

Browse files
committed
cleaning up broken unittests
1 parent e0d4a8c commit e276608

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

pydra/design/tests/test_shell.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,9 @@ class Outputs(ShellOutputs):
719719
"x",
720720
"y",
721721
]
722-
assert sorted(a.name for a in attrs.fields(A.Outputs)) == [
722+
assert sorted(
723+
a.name for a in attrs.fields(A.Outputs) if not a.name.startswith("_")
724+
) == [
723725
"return_code",
724726
"stderr",
725727
"stdout",

pydra/engine/state.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,7 @@ def combiner_validation(self):
866866
def prepare_states(
867867
self,
868868
inputs: dict[str, ty.Any],
869+
cont_dim: dict[str, int] | None = None,
869870
):
870871
"""
871872
Prepare a full list of state indices and state values.
@@ -881,6 +882,8 @@ def prepare_states(
881882
self.combiner_validation()
882883
self.set_input_groups()
883884
self.inputs = inputs
885+
if cont_dim is not None:
886+
self.cont_dim = cont_dim
884887
if self.other_states:
885888
st: State
886889
for nm, (st, _) in self.other_states.items():

pydra/engine/tests/test_workflow.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,8 +2855,7 @@ def Worky2(x, y):
28552855
# checking if the second worky didn't run again
28562856
# checking all directories
28572857

2858-
for odir in worky2.output_dir:
2859-
assert not odir.exists()
2858+
assert results1.output_dir == results2.output_dir
28602859

28612860

28622861
@pytest.mark.flaky(reruns=3)

0 commit comments

Comments
 (0)