File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313"""Tests for pubchem.py."""
1414
15- import time
1615import unittest
1716from unittest .mock import patch
1817
1918import numpy
2019import pytest
20+ import pubchempy
2121
2222from openfermion .chem .pubchem import geometry_from_pubchem
2323from openfermion .testing .testing_utils import module_importable
@@ -152,7 +152,7 @@ def test_water_2d(self):
152152 with pytest .raises (ValueError , match = 'Incorrect value for the argument structure' ):
153153 _ = geometry_from_pubchem ('water' , structure = 'foo' )
154154
155- @pytest .mark .flaky (retries = 3 , delay = 2 )
155+ @pytest .mark .flaky (retries = 3 , delay = 2 , only_on = [ pubchempy . ServerBusyError ] )
156156 def test_geometry_from_pubchem_live_api (self ):
157- water_geometry = geometry_from_pubchem ('water' ) # pragma: no cover
158- self .assertEqual (len (water_geometry ), 3 ) # pragma: no cover
157+ water_geometry = geometry_from_pubchem ('water' )
158+ self .assertEqual (len (water_geometry ), 3 )
You can’t perform that action at this time.
0 commit comments