Skip to content

Commit 8211b82

Browse files
[PLT-383] Fix SDK integration tests.
1 parent bfedb6e commit 8211b82

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

tests/integration/annotation_import/fixtures/export_v2.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ def expected_export_v2_text():
144144
'annotation_kind': 'TextEntity',
145145
'classifications': [],
146146
'location': {
147-
'start': 67,
148-
'end': 128
147+
'start':
148+
67,
149+
'end':
150+
128,
151+
'token':
152+
'ore people to express themselves online😞😂, research suggests',
149153
}
150154
}],
151155
'classifications': [{
@@ -174,9 +178,7 @@ def expected_export_v2_text():
174178
def expected_export_v2_video():
175179
expected_annotations = {
176180
'frames': {},
177-
'segments': {
178-
'<cuid>': [[7, 13], [18, 19]]
179-
},
181+
'segments': {},
180182
'key_frame_feature_map': {},
181183
'classifications': [{
182184
'name':

tests/integration/annotation_import/test_data_types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ def test_import_data_types_v2(client, configured_project, initial_dataset,
296296
# to be similar to tests/integration/test_task_queue.py
297297

298298
result = export_v2_test_helpers.run_project_export_v2_task(project)
299-
exported_data = result[0]
299+
find_data_row = lambda dr: dr['data_row']['id'] == data_row.uid
300+
exported_data = list(filter(find_data_row, result))[0]
301+
assert exported_data
300302

301303
# timestamp fields are in iso format
302304
validate_iso_format(exported_data['data_row']['details']['created_at'])

0 commit comments

Comments
 (0)