Skip to content

Commit f2584c8

Browse files
committed
chore: format code
1 parent c7e25d5 commit f2584c8

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

unit_tests/sources/declarative/interpolation/test_macros.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,33 +121,24 @@ def test_utc_datetime_to_local_timestamp_conversion():
121121
"""
122122
assert macros["format_datetime"](dt="2020-10-01T00:00:00Z", format="%s") == "1601510400"
123123

124+
124125
@pytest.mark.parametrize(
125126
"test_name, input_value, input_format, expected_output",
126127
[
127-
(
128-
"test_basic_date",
129-
"2022-01-01",
130-
"%Y-%m-%d",
131-
datetime.datetime(2022, 1, 1)
132-
),
128+
("test_basic_date", "2022-01-01", "%Y-%m-%d", datetime.datetime(2022, 1, 1)),
133129
(
134130
"test_datetime_with_time",
135131
"2022-01-01 13:45:30",
136132
"%Y-%m-%d %H:%M:%S",
137-
datetime.datetime(2022, 1, 1, 13, 45, 30)
133+
datetime.datetime(2022, 1, 1, 13, 45, 30),
138134
),
139135
(
140136
"test_datetime_with_timezone",
141137
"2022-01-01T13:45:30+00:00",
142138
"%Y-%m-%dT%H:%M:%S%z",
143-
datetime.datetime(2022, 1, 1, 13, 45, 30, tzinfo=datetime.timezone.utc)
144-
),
145-
(
146-
"test_datetime_custom_format",
147-
"01/Jan/2022",
148-
"%d/%b/%Y",
149-
datetime.datetime(2022, 1, 1)
139+
datetime.datetime(2022, 1, 1, 13, 45, 30, tzinfo=datetime.timezone.utc),
150140
),
141+
("test_datetime_custom_format", "01/Jan/2022", "%d/%b/%Y", datetime.datetime(2022, 1, 1)),
151142
],
152143
)
153144
def test_str_to_datetime(test_name, input_value, input_format, expected_output):

0 commit comments

Comments
 (0)