def test_index(self): index = index_models_minho() self.assertIsInstance(index, DataFrame) self.assertListEqual(list(index.columns), [ "id", "name", "doi", "author", "year", "formats", "organism", "taxonomy" ])
def test_index(self): try: index = index_models_minho() except requests.ConnectionError: pytest.skip('skipping test due to connection error') else: assert isinstance(index, DataFrame) assert list(index.columns) == ["id", "name", "doi", "author", "year", "formats", "organism", "taxonomy", "validated"]
def test_index(self): try: index = index_models_minho() except requests.ConnectionError: raise SkipTest('skipping web test due to connection error') self.assertIsInstance(index, DataFrame) self.assertListEqual(list(index.columns), [ "id", "name", "doi", "author", "year", "formats", "organism", "taxonomy", "validated" ])
def test_index(self): try: index = index_models_minho() except requests.ConnectionError: pytest.skip('skipping test due to connection error') else: assert isinstance(index, DataFrame) assert list(index.columns) == [ "id", "name", "doi", "author", "year", "formats", "organism", "taxonomy", "validated" ]
def test_index(self): index = index_models_minho() self.assertIsInstance(index, DataFrame) self.assertListEqual(list(index.columns), ["id", "name", "doi", "author", "year", "formats", "organism", "taxonomy", "validated"])
def test_invalid_host(self): with pytest.raises(requests.ConnectionError): index_models_minho(host="http://blabla") with pytest.raises(requests.ConnectionError): get_sbml_file(1, host="http://blabla")