Skip to content

Commit e311c73

Browse files
author
maxi297
committed
add more test cases
1 parent 8bcc43c commit e311c73

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

unit_tests/sources/declarative/interpolation/test_macros.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ def test_macros_export(test_name, fn_name, found_in_macros):
101101
"%ms",
102102
"2022-01-01T01:01:01Z",
103103
),
104+
(
105+
"2022-01-01T01:01:01+0100",
106+
"%Y-%m-%dT%H:%M:%S.%f%z",
107+
None,
108+
"2022-01-01T00:01:01.000000+0000",
109+
),
110+
(
111+
"2022-01-01T01:01:01",
112+
"%Y-%m-%dT%H:%M:%S.%f%z",
113+
None,
114+
"2022-01-01T01:01:01.000000+0000",
115+
),
104116
],
105117
ids=[
106118
"test_datetime_string_to_date",
@@ -117,6 +129,8 @@ def test_macros_export(test_name, fn_name, found_in_macros):
117129
"test_timestamp_to_format_string",
118130
"test_timestamp_epoch_microseconds_to_format_string",
119131
"test_timestamp_ms_to_format_string",
132+
"test_datetime_with_timezone",
133+
"test_datetime_without_timezone_then_utc_is_inferred",
120134
],
121135
)
122136
def test_format_datetime(input_value, format, input_format, expected_output):

0 commit comments

Comments
 (0)