Skip to content

Commit

Permalink
Add test for raw flag from media list.
Browse files Browse the repository at this point in the history
  • Loading branch information
autopulated committed Aug 22, 2024
1 parent d52bde9 commit 46b21c8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"ls": "-1",
"s": "25086075",
},
{"n": "GOPR0039.JPG", "cre": "1724339068", "mod": "1724339068", "raw": "1", "s": "783927"},
],
}
],
Expand All @@ -134,9 +135,10 @@ def test_media_list():
media_list = MediaList(**MEDIA_LIST)
assert media_list
items = media_list.files
assert len(items) == 12
assert len(items) == 13
assert len([item for item in items if isinstance(item, GroupedMediaItem)]) == 2
assert media_list.files[0].filename == "100GOPRO/GX010001.MP4"
assert media_list.files[-1].raw == "1"


VIDEO_METADATA: Final = {
Expand Down

0 comments on commit 46b21c8

Please sign in to comment.