File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import time_functions
2+
3+ def test_convertions_from_sample23 ():
4+ assert float (time_functions .timestamp_sanitizer_psql (1742758997 )) == 1742758997
5+
6+
7+ def test_convertions_from_sample24 ():
8+ '''
9+ # unix seconds
10+ '''
11+ assert int (time_functions .timestamp_sanitizer_psql (1742758997 )) == 1742758997
12+
13+
14+ def test_convertions_from_sample25 ():
15+ '''
16+ # unix millis
17+ '''
18+ assert float (time_functions .timestamp_sanitizer_psql (1742758997018 )) == 1742758997.018
19+
20+
21+ def test_convertions_from_sample26 ():
22+ '''
23+ # unix micros
24+ '''
25+ assert float (time_functions .timestamp_sanitizer_psql (1742758997018308 )) == 1742758997.018
26+
27+
28+ def test_convertions_from_sample27 ():
29+ '''
30+ # unix micros
31+ '''
32+ assert float (time_functions .timestamp_sanitizer_psql (1742758997018308 )) == 1742758997.018
33+
34+
35+ def test_convertions_from_sample28 ():
36+ '''
37+ # psql special
38+ '''
39+ assert float (time_functions .timestamp_sanitizer_psql (1742758997.018308 )) == 1742758997.018
40+
41+
42+ def test_convertions_from_sample29 ():
43+ '''
44+ # psql special
45+ '''
46+ assert float (time_functions .timestamp_sanitizer_psql (1742758997.018 )) == 1742758997.018
47+
48+
49+ def test_convertions_from_sample30 ():
50+ '''
51+ # bad format
52+ '''
53+ assert float (time_functions .timestamp_sanitizer_psql (1742758997018.308 )) == 1742758997.018
54+
55+
56+ def test_convertions_from_sample31 ():
57+ '''
58+ # bad format
59+ '''
60+ assert float (time_functions .timestamp_sanitizer_psql ("2025-03-23T19:43:17.018Z" )) == 1742758997.018
61+
62+
63+ def test_convertions_from_sample32 ():
64+ assert time_functions .timestamp_sanitizer_psql (1742742625002.908 ) == 1742742625.002
You can’t perform that action at this time.
0 commit comments