File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
astroquery/astrometry_net/tests Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import os
5
5
6
+ from numpy .testing import assert_allclose
7
+
6
8
# performs similar tests as test_module.py, but performs
7
9
# the actual HTTP request rather than monkeypatching them.
8
10
# should be disabled or enabled at will - use the
@@ -121,7 +123,8 @@ def test_solve_image_detect_source_local():
121
123
difference = expected_result [key ] - result [key ]
122
124
except TypeError :
123
125
pass
124
- assert difference == 0
126
+
127
+ assert_allclose (difference , 0 , atol = 1e-4 )
125
128
126
129
127
130
@pytest .mark .skipif (not api_key , reason = 'API key not set.' )
@@ -153,7 +156,7 @@ def test_solve_timeout_behavior():
153
156
difference = expected_result [key ] - result [key ]
154
157
except TypeError :
155
158
pass
156
- assert difference == 0
159
+ assert_allclose ( difference , 0 , atol = 1e-4 )
157
160
158
161
159
162
@pytest .mark .skipif (not api_key , reason = 'API key not set.' )
You can’t perform that action at this time.
0 commit comments