Skip to content

Commit 037b73d

Browse files
committed
Add test case for truncate_datetime
1 parent 97cb710 commit 037b73d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_diff_datetime.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def test_datetime_within_array_with_timezone_diff(self):
2222
res_ignore = DeepDiff(d1, d2, ignore_order=True)
2323
assert res_ignore == expected
2424

25+
res_truncate = DeepDiff(d1, d2, truncate_datetime='second')
26+
assert res_truncate == {}
27+
2528

2629
def test_datetime_diff(self):
2730
"""Testing for the correct setting and usage of epsilon."""

0 commit comments

Comments
 (0)