Skip to content
Snippets Groups Projects
Commit 99e182fb authored by Cain, Payton David's avatar Cain, Payton David Committed by Jeremy M Fee
Browse files

get message from caplog

parent 3d3c80e4
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!38Round microseconds in RawInputClient
...@@ -97,9 +97,10 @@ def test__get_time_values(caplog): ...@@ -97,9 +97,10 @@ def test__get_time_values(caplog):
residual_time = UTCDateTime(2020, 10, 6, 23, 59, 59, 999999) residual_time = UTCDateTime(2020, 10, 6, 23, 59, 59, 999999)
r_yr, r_doy, r_secs, r_usecs = client._get_time_values(residual_time) r_yr, r_doy, r_secs, r_usecs = client._get_time_values(residual_time)
# check if input microsecond value changes within function # check if input microsecond value changes within function
message = caplog.messages[0]
assert_equal( assert_equal(
caplog.text, message,
"WARNING root:RawInputClient.py:434 residual microsecond values encountered, rounding to nearest microsecond\n", "residual microsecond values encountered, rounding to nearest microsecond",
) )
e_yr, e_doy, e_secs, e_usecs = client._get_time_values(expected_time) e_yr, e_doy, e_secs, e_usecs = client._get_time_values(expected_time)
# test if residual result matches expected result # test if residual result matches expected result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment