(localfs)
| 1172 | |
| 1173 | |
| 1174 | def test_localfs_file_info(localfs): |
| 1175 | fs = localfs['fs'] |
| 1176 | |
| 1177 | file_path = pathlib.Path(__file__) |
| 1178 | dir_path = file_path.parent |
| 1179 | [file_info, dir_info] = fs.get_file_info([file_path.as_posix(), |
| 1180 | dir_path.as_posix()]) |
| 1181 | assert file_info.size == file_path.stat().st_size |
| 1182 | assert file_info.mtime_ns == file_path.stat().st_mtime_ns |
| 1183 | check_mtime(file_info) |
| 1184 | assert dir_info.mtime_ns == dir_path.stat().st_mtime_ns |
| 1185 | check_mtime(dir_info) |
| 1186 | |
| 1187 | |
| 1188 | def test_mockfs_mtime_roundtrip(mockfs): |
nothing calls this directly
no test coverage detected