def test_find_artifacts(self): a = ArtifactsList() a.find_artifacts(self.urls) assert a.get('insight') == self.urls[0] assert a.get('OMERO.insight-0.0.0.zip') == self.urls[0] assert a.get('insight-ij') == self.urls[1] assert a.get('mac') == self.urls[2] assert a.get('GIT_INFO') == self.urls[3] assert a.get('bio') == self.urls[4] assert a.get('bio-formats') == self.urls[6] with pytest.raises(ArtifactException): a.get('non-existent')
def test_str(self): a = ArtifactsList() a.find_artifacts(self.urls) expected = """named-components: mac server omerozips: insight-0.0.0 insight-0.0.0-mac_Java7+ insight-ij-0.0.0 server-0.0.0-DEV zips: OMERO.insight-0.0.0 OMERO.insight-0.0.0-mac_Java7+ OMERO.insight-ij-0.0.0 OMERO.server-0.0.0-DEV bioformats-0.0.0-DEV jars: bio-formats-tools bio-formats_plugins""" assert str(a) == expected