Skip to content

Commit

Permalink
Merge branch 'dev' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Feb 13, 2021
2 parents d1b2500 + ab79710 commit 2db59cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions biosimulators_test_suite/test_case/combine_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@
from biosimulators_utils.combine.data_model import CombineArchive, CombineArchiveContent, CombineArchiveContentFormat # noqa: F401
from biosimulators_utils.report.io import ReportReader
from biosimulators_utils.sedml.data_model import SedDocument, Report # noqa: F401
import abc
import copy
import datetime
import os
import shutil
import warnings

__all__ = [
'CombineArchiveTestCase',
'WhenACombineArchiveHasAMasterFileSimulatorOnlyExecutesThisFile',
'WhenACombineArchiveHasNoMasterFileSimulatorExecutesAllSedDocuments',
'CombineArchiveHasSedDocumentsInNestedDirectories',
'CombineArchiveHasSedDocumentsWithSameNamesInDifferentInNestedDirectories',
]


Expand All @@ -33,6 +37,9 @@ class CombineArchiveTestCase(SingleMasterSedDocumentCombineArchiveTestCase):
SED_DOCUMENT_LOCATIONS_ARE_NESTED = False
SED_DOCUMENTS_HAVE_SAME_NAMES = False

@abc.abstractmethod
def _is_concrete(): pass

def build_synthetic_archives(self, specifications, curated_archive, curated_archive_dir, curated_sed_docs):
""" Generate a synthetic archive with a copy of each task and each report
Expand Down Expand Up @@ -162,6 +169,8 @@ class WhenACombineArchiveHasAMasterFileSimulatorOnlyExecutesThisFile(CombineArch
_archive_has_master (:obj:`bool`): whether the synthetic archive should have a master file
"""

def _is_concrete(): return True

@property
def _archive_has_master(self):
return True
Expand All @@ -175,6 +184,8 @@ class WhenACombineArchiveHasNoMasterFileSimulatorExecutesAllSedDocuments(Combine
_archive_has_master (:obj:`bool`): whether the synthetic archive should have a master file
"""

def _is_concrete(): return True

@property
def _archive_has_master(self):
return False
Expand All @@ -186,6 +197,9 @@ class CombineArchiveHasSedDocumentsInNestedDirectories(WhenACombineArchiveHasAMa
Attributes:
_archive_has_master (:obj:`bool`): whether the synthetic archive should have a master file
"""

def _is_concrete(): return True

SED_DOCUMENT_LOCATIONS_ARE_NESTED = True
SED_DOCUMENTS_HAVE_SAME_NAMES = False

Expand All @@ -197,5 +211,8 @@ class CombineArchiveHasSedDocumentsWithSameNamesInDifferentInNestedDirectories(
Attributes:
_archive_has_master (:obj:`bool`): whether the synthetic archive should have a master file
"""

def _is_concrete(): return True

SED_DOCUMENT_LOCATIONS_ARE_NESTED = True
SED_DOCUMENTS_HAVE_SAME_NAMES = True

0 comments on commit 2db59cd

Please sign in to comment.