Skip to content

Commit 0b57dc7

Browse files
committed
update some more unit tests
1 parent 7e3d6de commit 0b57dc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/sdk/test_timestamp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
def test_init_empty():
1313
t1 = Timestamp()
1414
assert isinstance(t1, Timestamp)
15-
assert t1.to_string() == t1._obj.instant().format_common_iso()
15+
assert t1.to_datetime() == t1._obj.py_datetime()
1616

1717
t2 = Timestamp(None)
1818
assert isinstance(t2, Timestamp)
19-
assert t2.to_string() == t2._obj.instant().format_common_iso()
19+
assert t2.to_datetime() == t2._obj.py_datetime()
2020

2121

2222
def test_init_timestamp():
2323
t1 = Timestamp()
2424
t2 = Timestamp(t1)
2525
assert t1.to_string() == t2.to_string()
2626
assert isinstance(t2, Timestamp)
27-
assert t2.to_string() == t2._obj.instant().format_common_iso()
27+
assert t2.to_datetime() == t2._obj.py_datetime()
2828

2929

3030
def test_parse_string():

0 commit comments

Comments
 (0)