Skip to content

Commit 7766436

Browse files
author
joseramon.afonso
committed
Updated default from
Signed-off-by: joseramon.afonso <joseramon.afonso@devo.com>
1 parent 076afcd commit 7766436

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/common/date_parser.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ def test_default_to(self):
1616
self.assertTrue(ts1 == ts2)
1717

1818
def test_default_from(self):
19-
ts1 = default_from()
20-
ts2 = int((dt.utcnow() - self.epoch).total_seconds() * 1000) - 86400000
19+
ts1 = str(default_from())[:11]
20+
ts2 = str(int((dt.utcnow() - self.epoch).total_seconds() * 1000)
21+
- 86400000)[:11]
2122
self.assertTrue(ts1 == ts2)
2223

2324
# Tests amounts

0 commit comments

Comments
 (0)