Skip to content

Commit

Permalink
Add day-first datetime format to WA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joweich committed Nov 19, 2023
1 parent 26792ce commit 4169138
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_whatsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ def test_dateformat5():
assert_equal_from_file("dateformat5")


def test_dateformat6():
assert_equal_from_file("dateformat6")


def test_unicode():
assert_equal_from_file("unicode")
6 changes: 6 additions & 0 deletions test/whatsapp/test_dateformat6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
21/10/21, 15:21:45 - John Doe: Lorem ipsum dolor sit amet.
22/10/21, 15:21:46 - John Doe: Lorem ipsum dolor sit amet.

23/10/21, 15:21:47 - John-John Doe: Lorem ipsum : dolor sit amet.
24/10/21, 15:21:48 - Jahn Doe: Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Duis libero.
5 changes: 5 additions & 0 deletions test/whatsapp/test_dateformat6_target.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
timestamp,author,message,weekday,hour,words,letters
2021-10-24 15:21:48,Jahn Doe,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis libero.",Sunday,15,10,69
2021-10-23 15:21:47,John-John Doe,Lorem ipsum : dolor sit amet.,Saturday,15,6,29
2021-10-22 15:21:46,John Doe,Lorem ipsum dolor sit amet.,Friday,15,5,27
2021-10-21 15:21:45,John Doe,Lorem ipsum dolor sit amet.,Thursday,15,5,27

0 comments on commit 4169138

Please sign in to comment.