From 40795d895ab2a10cd77ae41f53bc88783d9fca1f Mon Sep 17 00:00:00 2001 From: pcain-usgs <pcain@usgs.gov> Date: Thu, 7 May 2020 16:03:01 -0600 Subject: [PATCH] Test for Null DM measurements --- test/residual_test/residual_test.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/test/residual_test/residual_test.py b/test/residual_test/residual_test.py index 0d952352b..d5be09d8b 100644 --- a/test/residual_test/residual_test.py +++ b/test/residual_test/residual_test.py @@ -98,5 +98,20 @@ def test_BOU_20200422(): starttime=UTCDateTime("2020-04-22T00:00:00Z"), endtime=UTCDateTime("2020-04-23T00:00:00Z"), ) - assert_readings_equal(reading, calculate(reading), 0.1) - assert_readings_equal(reading, calculate(reading, False), 0.1) + + assert_readings_equal(reading, calculate(reading, False), 0.0) + + +def test_BOU_20190702(): + """ + Compare calulations to original absolutes obejct from web absolutes. + Tests gathering of BOU's metadata for use by calculations. + Tests calculations for null method measurements in units of DM. + """ + reading = compare_null_absolutes( + observatory="BOU", + starttime=UTCDateTime("2019-07-02T00:00:00Z"), + endtime=UTCDateTime("2019-07-03T00:00:00Z"), + ) + + assert_readings_equal(reading, calculate(reading, False), 0.0) -- GitLab