Example #1
0
 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"
     ])
Example #2
0
 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"]
Example #3
0
 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"
     ])
Example #4
0
 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"
         ]
Example #5
0
 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"])
Example #6
0
 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")
Example #7
0
 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")