Skip to content

Commit 22b8645

Browse files
committed
removed pendulum.Timezone; doesnt exist in 2.0
1 parent 7b21b94 commit 22b8645

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/sources/filesystem/test_readers.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ def _create_parquet_file(data: list[dict[str, Any]], tmp_path: pathlib.Path) ->
4343
relative_path=file_name,
4444
file_url=full_file_path.as_uri(),
4545
mime_type="application/parquet",
46-
modification_date=pendulum.DateTime(
47-
2025, 1, 1, 0, 0, 0, 0, tzinfo=pendulum.Timezone("UTC")
48-
),
46+
modification_date=pendulum.DateTime(2025, 1, 1, 0, 0, 0, 0),
4947
size_in_bytes=111,
5048
)
5149

@@ -64,9 +62,7 @@ def _create_csv_file(data: list[dict[str, Any]], tmp_path: pathlib.Path) -> File
6462
relative_path=file_name,
6563
file_url=full_file_path.as_uri(),
6664
mime_type="text/csv",
67-
modification_date=pendulum.DateTime(
68-
2025, 1, 1, 0, 0, 0, 0, tzinfo=pendulum.Timezone("UTC")
69-
),
65+
modification_date=pendulum.DateTime(2025, 1, 1, 0, 0, 0, 0),
7066
size_in_bytes=111,
7167
)
7268
return FileItemDict(mapping=file_item, fsspec=_fsspec_client(tmp_path))
@@ -85,9 +81,7 @@ def _create_jsonl_file(data: list[dict[str, Any]], tmp_path: pathlib.Path) -> Fi
8581
relative_path=file_name,
8682
file_url=full_file_path.as_uri(),
8783
mime_type="text/jsonl",
88-
modification_date=pendulum.DateTime(
89-
2025, 1, 1, 0, 0, 0, 0, tzinfo=pendulum.Timezone("UTC")
90-
),
84+
modification_date=pendulum.DateTime(2025, 1, 1, 0, 0, 0, 0),
9185
size_in_bytes=111,
9286
)
9387

0 commit comments

Comments
 (0)