fix: return millisecond timestamps from get_file_info() (#12996)

This commit is contained in:
Luke Mino-Altherr
2026-05-05 19:56:09 -07:00
committed by GitHub
parent 160b95f75c
commit 2b63add0ad
2 changed files with 7 additions and 3 deletions

View File

@@ -69,7 +69,11 @@ async def test_listuserdata_full_info(aiohttp_client, app, tmp_path):
assert len(result) == 1
assert result[0]["path"] == "file1.txt"
assert "size" in result[0]
assert "modified" in result[0]
assert isinstance(result[0]["modified"], int)
assert isinstance(result[0]["created"], int)
# Verify millisecond magnitude (timestamps after year 2000 in ms are > 946684800000)
assert result[0]["modified"] > 946684800000
assert result[0]["created"] > 946684800000
async def test_listuserdata_split_path(aiohttp_client, app, tmp_path):