Skip to content

Commit

Permalink
Fixed tests requiring mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Sep 24, 2024
1 parent 2036cd4 commit beeda7c
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 278 deletions.
4 changes: 2 additions & 2 deletions biosimulators_utils/log/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ..config import Config # noqa: F401
from ..sedml.data_model import SedDocument, Task, Output, Report, Plot2D, Plot3D, DataSet, Curve, Surface
from ..sedml.io import SedmlSimulationReader
from ..sedml.utils import get_variables_for_task
from ..sedml.utils import is_executable_task
from ..warnings import warn
from .data_model import (Status, CombineArchiveLog, SedDocumentLog, # noqa: F401
TaskLog, OutputLog, ReportLog, Plot2DLog, Plot3DLog,
Expand Down Expand Up @@ -103,7 +103,7 @@ def init_sed_document_log(doc,

if Task in logged_features:
log.tasks = {}
for valid_task in [task for task in doc.tasks if 0 < len(get_variables_for_task(doc, task))]:
for valid_task in [task for task in doc.tasks if is_executable_task(doc, task)]:
task_log = init_task_log(valid_task, supported_features=supported_features, logged_features=logged_features)
task_log.status = Status.QUEUED if isinstance(valid_task, supported_features) else Status.SKIPPED
task_log.parent = log
Expand Down
Loading

0 comments on commit beeda7c

Please sign in to comment.