diff --git a/frb/tests/test_scripts.py b/frb/tests/test_scripts.py index 68fc7469..58ac4330 100644 --- a/frb/tests/test_scripts.py +++ b/frb/tests/test_scripts.py @@ -11,6 +11,8 @@ from frb.scripts import pzdm_mag from frb.scripts import tns +remote_data = pytest.mark.skipif(os.getenv('FRB_GDB') is None, + reason='test requires dev suite') def test_frb_summary(): pargs = frb_summary.parser(['180924']) @@ -25,8 +27,9 @@ def test_frb_pzdm_mag(): assert np.isclose(zmax, 0.16080402010050251) assert np.isclose(z_50, 0.10050251256281408) assert np.isclose(z_mode, 0.12060301507537688) - assert np.isclose(Lmax, 0.023780306538345886) + assert np.isclose(Lmax, 0.023809, atol=1e-4) +@remote_data def test_tns(): tns.parser.units = 'deg' tns.parser.radius = 0.5