Exemplo n.º 1
0
 def test_stringify_complex_data_with_dates(self):
     cdata = ry.comments.CommentedMap({
         "dates":
         ry.comments.CommentedSeq(
             [dt.date(2020, 10, 31),
              dt.date(2020, 11, 3)])
     })
     sdata = Parsers.stringify_dates(cdata)
     assert sdata["dates"][0] == "2020-10-31"
     assert sdata["dates"][1] == "2020-11-03"
Exemplo n.º 2
0
def stringify_dates(*args):
    """Relay function call to static method."""
    return Parsers.stringify_dates(*args)