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 Oct 15, 2021
2 parents 4970f3e + cadfa26 commit 0d28a47
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion biosimulators_test_suite/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.67'
__version__ = '0.1.68'
4 changes: 2 additions & 2 deletions biosimulators_test_suite/test_case/docker_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def eval(self, specifications, working_dirname, synthetic_archives_dir=None, dry
image = self.get_simulator_docker_image(specifications)
missing_labels = set(self.EXPECTED_LABELS).difference(set(image.labels.keys()))
if missing_labels:
warnings.warn('The Docker image should have the following Open Container Initiative (OCI) labels:\n {}'.format(
warnings.warn('Docker images are encouraged to have the following Open Container Initiative (OCI) labels:\n {}'.format(
'\n '.join(sorted(missing_labels))), TestCaseWarning)


Expand Down Expand Up @@ -165,7 +165,7 @@ def eval(self, specifications, working_dirname, synthetic_archives_dir=None, dry
image = self.get_simulator_docker_image(specifications)
missing_labels = set(self.EXPECTED_LABELS).difference(set(image.labels.keys()))
if missing_labels:
warnings.warn('The Docker image should have the following BioContainers labels:\n {}'.format(
warnings.warn('Docker images are encouraged to have the following BioContainers labels:\n {}'.format(
'\n '.join(sorted(missing_labels))), TestCaseWarning)


Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
<content location="metadata.rdf" format="http://identifiers.org/combine.specifications/omex-metadata" master="false"/>
<content location="expected-results.json" format="http://purl.org/NET/mediatypes/application/json" master="false"/>
<content location="reports.h5" format="http://purl.org/NET/mediatypes/application/x-hdf" master="false"/>
<content location="Figure1.jpg" format="http://purl.org/NET/mediatypes/images/jpeg" master="false"/>
<content location="Figure1.jpg" format="http://purl.org/NET/mediatypes/image/jpeg" master="false"/>
</omexManifest>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
<content location="metadata.rdf" format="http://identifiers.org/combine.specifications/omex-metadata" master="false"/>
<content location="expected-results.json" format="http://purl.org/NET/mediatypes/application/json" master="false"/>
<content location="reports.h5" format="http://purl.org/NET/mediatypes/application/x-hdf" master="false"/>
<content location="Figure1.jpg" format="http://purl.org/NET/mediatypes/images/jpeg" master="false"/>
<content location="Figure1.jpg" format="http://purl.org/NET/mediatypes/image/jpeg" master="false"/>
</omexManifest>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
<content location="metadata.rdf" format="http://identifiers.org/combine.specifications/omex-metadata" master="false"/>
<content location="expected-results.json" format="http://purl.org/NET/mediatypes/application/json" master="false"/>
<content location="reports.h5" format="http://purl.org/NET/mediatypes/application/x-hdf" master="false"/>
<content location="Figure1.jpg" format="http://purl.org/NET/mediatypes/images/jpeg" master="false"/>
<content location="Figure1.jpg" format="http://purl.org/NET/mediatypes/image/jpeg" master="false"/>
</omexManifest>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<content location="metadata.rdf" format="http://identifiers.org/combine.specifications/omex-metadata" master="false"/>
<content location="expected-results.json" format="http://purl.org/NET/mediatypes/application/json" master="false"/>
<content location="reports.h5" format="http://purl.org/NET/mediatypes/application/x-hdf" master="false"/>
<content location="Figure1.jpg" format="http://purl.org/NET/mediatypes/images/jpeg" master="false"/>
<content location="Figure1.jpg" format="http://purl.org/NET/mediatypes/image/jpeg" master="false"/>
</omexManifest>
4 changes: 2 additions & 2 deletions tests/test_case/test_docker_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def test_DeclaresSupportedEnvironmentVariables(self):
def test_HasOciLabels(self):
case = docker_image.HasOciLabels()
case.eval({'image': {'url': self.IMAGE}}, self.dirname)
with self.assertWarnsRegex(TestCaseWarning, 'should have the following'):
with self.assertWarnsRegex(TestCaseWarning, 'are encouraged to have the following'):
case.eval({'image': {'url': 'hello-world'}}, self.dirname)

def test_HasBioContainersLabels(self):
case = docker_image.HasBioContainersLabels()
case.eval({'image': {'url': self.IMAGE}}, self.dirname)
with self.assertWarnsRegex(TestCaseWarning, 'should have the following'):
with self.assertWarnsRegex(TestCaseWarning, 'are encouraged to have the following'):
case.eval({'image': {'url': 'hello-world'}}, self.dirname)

def test_SingularityImageExecutesSimulationsSuccessfully(self):
Expand Down

0 comments on commit 0d28a47

Please sign in to comment.