Last active
March 25, 2018 07:42
-
-
Save prateekiiest/1d11bf7972724dcd6bed259bb13d1fbe to your computer and use it in GitHub Desktop.
New Tests for Parse_time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Examples showing how the new tests might look like after updation of `parse_time` | |
""" | |
from sunpy.time import parse_time | |
import astropy.time as T | |
def test_parse_time_24(): | |
assert parse_time("2010-10-10T24:00:00") == T.Time("2010-10-10T24:00:00") | |
def test_parse_time_24_2(): | |
assert parse_time("2010-10-10T24:00:00.000000") == T.Time("2010-10-10T24:00:00.000000") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment