File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def parse_file(filepath):
3535 "header" : None ,
3636 "parse_dates" : ["Date" ],
3737 "na_values" : ["-" ],
38+ "date_format" : "%d-%b-%Y" ,
3839 }
3940
4041 with Path (filepath ).open ("r" ) as fr :
Original file line number Diff line number Diff line change 22from io import StringIO
33from textwrap import dedent
44import tempfile
5+ import warnings
56
67import pandas
78
@@ -98,9 +99,11 @@ def expected_hydra():
9899
99100
100101def test_parse_file (expected_hydra ):
101- filepath = Path (get_test_file ("sample_hydra.txt" ))
102- result = hydra .parse_file (filepath )
103- pdtest .assert_frame_equal (expected_hydra , result )
102+ with warnings .catch_warnings ():
103+ warnings .simplefilter ("error" )
104+ filepath = Path (get_test_file ("sample_hydra.txt" ))
105+ result = hydra .parse_file (filepath )
106+ pdtest .assert_frame_equal (expected_hydra , result )
104107
105108
106109@mock .patch ("requests.get" )
You can’t perform that action at this time.
0 commit comments