def test_arrow_date_parse_erroe(self): cli = CommandLineInterface("test") with pytest.raises(argparse.ArgumentTypeError): cli.arrow_date("205-7-261")
def test_arrow_date(self): cli = CommandLineInterface("test") arw = cli.arrow_date("2016-09-22") expected = arrow.get(datetime(2016, 9, 22, 0, 0, 0), "utc") assert arw == expected