예제 #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"
예제 #2
0
파일: func.py 프로젝트: wwkimball/yamlpath
def stringify_dates(*args):
    """Relay function call to static method."""
    return Parsers.stringify_dates(*args)