Skip to content

Commit 7ae83e3

Browse files
committed
Allow for small differences between header values
1 parent fb7c224 commit 7ae83e3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

astroquery/astrometry_net/tests/test_astrometry_net_remote.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
import os
55

6+
from numpy.testing import assert_allclose
7+
68
# performs similar tests as test_module.py, but performs
79
# the actual HTTP request rather than monkeypatching them.
810
# should be disabled or enabled at will - use the
@@ -121,7 +123,8 @@ def test_solve_image_detect_source_local():
121123
difference = expected_result[key] - result[key]
122124
except TypeError:
123125
pass
124-
assert difference == 0
126+
127+
assert_allclose(difference, 0, atol=1e-4)
125128

126129

127130
@pytest.mark.skipif(not api_key, reason='API key not set.')
@@ -153,7 +156,7 @@ def test_solve_timeout_behavior():
153156
difference = expected_result[key] - result[key]
154157
except TypeError:
155158
pass
156-
assert difference == 0
159+
assert_allclose(difference, 0, atol=1e-4)
157160

158161

159162
@pytest.mark.skipif(not api_key, reason='API key not set.')

0 commit comments

Comments
 (0)