Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions tests/integration/export_v2/test_export_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ def org_id(client):
return client.get_organization().uid


def test_export_v2_video(client, configured_project_without_data_rows,
video_data, video_data_row, is_adv_enabled,
bbox_video_annotation_objects, rand_gen, user_id,
org_id):

orgid = client.get_organization().uid
userid = client.get_user().uid
def test_export_v2_video(
client,
configured_project_without_data_rows,
video_data,
video_data_row,
bbox_video_annotation_objects,
rand_gen,
):

project = configured_project_without_data_rows
project_id = project.uid
Expand Down Expand Up @@ -51,6 +52,7 @@ def test_export_v2_video(client, configured_project_without_data_rows,

num_retries = 5
task = None

while (num_retries > 0):
task = project.export_v2(
params={
Expand All @@ -72,7 +74,10 @@ def test_export_v2_video(client, configured_project_without_data_rows,
assert data_row_export['global_key'] == video_data_row['global_key']
assert data_row_export['row_data'] == video_data_row['row_data']
assert export_data[0]['media_attributes']['mime_type'] == 'video/mp4'

assert export_data[0]['media_attributes'][
'frame_rate'] == 10 # as per the video_data fixture
assert export_data[0]['media_attributes'][
'frame_count'] == 100 # as per the video_data fixture
expected_export_label = {
'label_kind': 'Video',
'version': '1.0.0',
Expand Down