Skip to content

Commit

Permalink
added test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofferEdlund committed Nov 15, 2023
1 parent b178a6c commit c21ab07
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/darwin/dataset/remote_dataset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,17 @@ def test_works_on_videos(
},
}

with (video_path / "0000001.json").open() as f:
assert json.loads(f.read()) == {
"annotations": [],
"image": {
"filename": "test_video/0000001.png",
"height": 1080,
"url": "frame_2.jpg",
"width": 1920,
},
}

with (video_path / "0000002.json").open() as f:
assert json.loads(f.read()) == {
"annotations": [
Expand Down

0 comments on commit c21ab07

Please sign in to comment.