Skip to content

Commit de152e0

Browse files
committed
[PTDT-0] Update tests to contain classifications field for TextAnswer
1 parent f27928e commit de152e0

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed

lbx_prompt.txt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11860,7 +11860,8 @@ def expected_export_v2_image():
1186011860
'name': 'text',
1186111861
'value': 'text',
1186211862
'text_answer': {
11863-
'content': 'free form text...'
11863+
'content': 'free form text...',
11864+
'classifications': []
1186411865
}
1186511866
}],
1186611867
'relationships': []
@@ -11887,7 +11888,8 @@ def expected_export_v2_audio():
1188711888
'name': 'text',
1188811889
'value': 'text',
1188911890
'text_answer': {
11890-
'content': 'free form text...'
11891+
'content': 'free form text...',
11892+
'classifications': []
1189111893
}
1189211894
}],
1189311895
'relationships': []
@@ -11903,7 +11905,8 @@ def expected_export_v2_html():
1190311905
'name': 'text',
1190411906
'value': 'text',
1190511907
'text_answer': {
11906-
'content': 'free form text...'
11908+
'content': 'free form text...',
11909+
'classifications': []
1190711910
}
1190811911
}, {
1190911912
'name':
@@ -11952,7 +11955,8 @@ def expected_export_v2_text():
1195211955
'name': 'text',
1195311956
'value': 'text',
1195411957
'text_answer': {
11955-
'content': 'free form text...'
11958+
'content': 'free form text...',
11959+
'classifications': []
1195611960
}
1195711961
}],
1195811962
'relationships': []
@@ -12150,7 +12154,8 @@ def expected_export_v2_document():
1215012154
'name': 'text',
1215112155
'value': 'text',
1215212156
'text_answer': {
12153-
'content': 'free form text...'
12157+
'content': 'free form text...',
12158+
'classifications': []
1215412159
}
1215512160
}],
1215612161
'relationships': []
@@ -12176,7 +12181,8 @@ def expected_export_v2_llm_prompt_creation():
1217612181
'name': 'text',
1217712182
'value': 'text',
1217812183
'text_answer': {
12179-
'content': 'free form text...'
12184+
'content': 'free form text...',
12185+
'classifications': []
1218012186
}
1218112187
}],
1218212188
'relationships': []
@@ -12202,7 +12208,8 @@ def expected_export_v2_llm_prompt_response_creation():
1220212208
'name': 'text',
1220312209
'value': 'text',
1220412210
'text_answer': {
12205-
'content': 'free form text...'
12211+
'content': 'free form text...',
12212+
'classifications': []
1220612213
}
1220712214
}],
1220812215
'relationships': []
@@ -12228,7 +12235,8 @@ def expected_export_v2_llm_response_creation():
1222812235
'name': 'text',
1222912236
'value': 'text',
1223012237
'text_answer': {
12231-
'content': 'free form text...'
12238+
'content': 'free form text...',
12239+
'classifications': []
1223212240
}
1223312241
}],
1223412242
'relationships': []

libs/labelbox/tests/data/annotation_import/conftest.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,8 @@ def expected_export_v2_image():
14231423
"name": "text",
14241424
"value": "text",
14251425
"text_answer": {
1426-
"content": "free form text..."
1426+
"content": "free form text...",
1427+
"classifications": []
14271428
},
14281429
},
14291430
],
@@ -1453,7 +1454,8 @@ def expected_export_v2_audio():
14531454
"name": "text",
14541455
"value": "text",
14551456
"text_answer": {
1456-
"content": "free form text..."
1457+
"content": "free form text...",
1458+
"classifications": []
14571459
},
14581460
},
14591461
],
@@ -1471,7 +1473,8 @@ def expected_export_v2_html():
14711473
"name": "text",
14721474
"value": "text",
14731475
"text_answer": {
1474-
"content": "free form text..."
1476+
"content": "free form text...",
1477+
"classifications": []
14751478
},
14761479
},
14771480
{
@@ -1521,7 +1524,8 @@ def expected_export_v2_text():
15211524
"name": "text",
15221525
"value": "text",
15231526
"text_answer": {
1524-
"content": "free form text..."
1527+
"content": "free form text...",
1528+
"classifications": []
15251529
},
15261530
},
15271531
],
@@ -1731,7 +1735,8 @@ def expected_export_v2_document():
17311735
"name": "text",
17321736
"value": "text",
17331737
"text_answer": {
1734-
"content": "free form text..."
1738+
"content": "free form text...",
1739+
"classifications": []
17351740
},
17361741
},
17371742
],
@@ -1760,7 +1765,8 @@ def expected_export_v2_llm_prompt_creation():
17601765
"name": "text",
17611766
"value": "text",
17621767
"text_answer": {
1763-
"content": "free form text..."
1768+
"content": "free form text...",
1769+
"classifications": []
17641770
},
17651771
},
17661772
],
@@ -1789,7 +1795,8 @@ def expected_export_v2_llm_prompt_response_creation():
17891795
"name": "text",
17901796
"value": "text",
17911797
"text_answer": {
1792-
"content": "free form text..."
1798+
"content": "free form text...",
1799+
"classifications": []
17931800
},
17941801
},
17951802
],
@@ -1818,7 +1825,8 @@ def expected_export_v2_llm_response_creation():
18181825
"name": "text",
18191826
"value": "text",
18201827
"text_answer": {
1821-
"content": "free form text..."
1828+
"content": "free form text...",
1829+
"classifications": []
18221830
},
18231831
},
18241832
],

0 commit comments

Comments
 (0)