(mockfs)
| 1186 | |
| 1187 | |
| 1188 | def 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 |
nothing calls this directly
no test coverage detected