-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding unittests for several csv import related timestamp / datetime …
…edge cases (#3177) * add a few unittests for timestamp conversaion * adding some unit tests for parsing from CSV * adding unit tests for fixing dataframes datetime / timestamp * fix lint * pylint2 * remove two prints * remove a todo that was left from developing
- Loading branch information
Showing
5 changed files
with
155 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"message","timestamp","datetime","timestamp_desc","data_type" | ||
"Missing timezone info","123456","2017-09-24 19:01:01","Write time","Missing_timezone_info" | ||
"Wrong epoch","123456","2017-07-24T19:01:01","Write time","wrong_timestamp" | ||
"Wrong epoch","9999999999999","2017-10-24 19:01:01","Write time","long_timestamp" | ||
"Wrong epoch","88888888","1234 19:01:01","Write time","wrong_datetime_1" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"message","timestamp","datetime","timestamp_desc","data_type" | ||
"No datetime given","1435789661000000","","Logging","No_datetime" | ||
"Whitespace datetime","1437789661000000"," ","Logging","Whitespace_datetime" | ||
"No Timestamp1","","2015-07-25 02:01:01+00:00","Logging","No timestamp1" | ||
"No Timestamp2",,"2014-07-25 02:01:01+00:00","Logging","No timestamp2" | ||
"Whitespace Timestamp"," ","2016-07-25 02:01:01+00:00","Logging","Whitespace timestamp" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"message","timestamp","datetime","timestamp_desc","data_type" | ||
"total precision in datetime","123456789","2024-07-24T10:57:02.877297Z","Write time","timestamptest1" | ||
"precision in timestamp","1331698658276340","2015-07-24T19:01:01+00:00","Write time","timestamptest2" |
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