MCPcopy Create free account
hub / github.com/apache/arrow / test_mockfs_mtime_roundtrip

Function test_mockfs_mtime_roundtrip

python/pyarrow/tests/test_fs.py:1188–1195  ·  view source on GitHub ↗
(mockfs)

Source from the content-addressed store, hash-verified

1186
1187
1188def test_mockfs_mtime_roundtrip(mockfs):
1189 dt = datetime.fromtimestamp(1568799826, timezone.utc)
1190 fs = _MockFileSystem(dt)
1191
1192 with fs.open_output_stream('foo'):
1193 pass
1194 [info] = fs.get_file_info(['foo'])
1195 assert info.mtime == dt
1196
1197
1198@pytest.mark.gcs

Callers

nothing calls this directly

Calls 2

open_output_streamMethod · 0.45
get_file_infoMethod · 0.45

Tested by

no test coverage detected