Skip to content

Commit

Permalink
fix silly problem with unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
emolter committed Oct 8, 2024
1 parent 622b58a commit 843c18c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,11 @@ class StepWithModel(Step):
def process(self, input_model):
# make a change to ensure step skip is working
# without having to define SimpleDataModel.meta.stepname
input_model.stepstatus = "COMPLETED"
if isinstance(input_model, SimpleDataModel):
input_model.stepstatus = "COMPLETED"
elif isinstance(input_model, SimpleContainer):
for model in input_model:
model.stepstatus = "COMPLETED"
return input_model


Expand Down

0 comments on commit 843c18c

Please sign in to comment.