Skip to content

Commit b798c01

Browse files
authored
[PTDT-0] Update tests to contain classifications field for TextAnswer (#1907)
1 parent 84d5fae commit b798c01

File tree

1 file changed

+42
-10
lines changed

1 file changed

+42
-10
lines changed

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

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,10 @@ def expected_export_v2_image():
20712071
{
20722072
"name": "text",
20732073
"value": "text",
2074-
"text_answer": {"content": "free form text..."},
2074+
"text_answer": {
2075+
"content": "free form text...",
2076+
"classifications": [],
2077+
},
20752078
},
20762079
],
20772080
"relationships": [],
@@ -2103,7 +2106,10 @@ def expected_export_v2_audio():
21032106
{
21042107
"name": "text",
21052108
"value": "text",
2106-
"text_answer": {"content": "free form text..."},
2109+
"text_answer": {
2110+
"content": "free form text...",
2111+
"classifications": [],
2112+
},
21072113
},
21082114
],
21092115
"segments": {},
@@ -2120,7 +2126,10 @@ def expected_export_v2_html():
21202126
{
21212127
"name": "text",
21222128
"value": "text",
2123-
"text_answer": {"content": "free form text..."},
2129+
"text_answer": {
2130+
"content": "free form text...",
2131+
"classifications": [],
2132+
},
21242133
},
21252134
{
21262135
"name": "checklist",
@@ -2180,7 +2189,10 @@ def expected_export_v2_text():
21802189
{
21812190
"name": "text",
21822191
"value": "text",
2183-
"text_answer": {"content": "free form text..."},
2192+
"text_answer": {
2193+
"content": "free form text...",
2194+
"classifications": [],
2195+
},
21842196
},
21852197
],
21862198
"relationships": [],
@@ -2301,10 +2313,12 @@ def expected_export_v2_document():
23012313
"left": 58.0,
23022314
"height": 65.0,
23032315
"width": 12.0,
2316+
"unit": "points",
23042317
},
23052318
"page_dimensions": {
23062319
"height": 792.0,
23072320
"width": 612.0,
2321+
"unit": "points",
23082322
},
23092323
},
23102324
],
@@ -2328,7 +2342,10 @@ def expected_export_v2_document():
23282342
{
23292343
"name": "text",
23302344
"value": "text",
2331-
"text_answer": {"content": "free form text..."},
2345+
"text_answer": {
2346+
"content": "free form text...",
2347+
"classifications": [],
2348+
},
23322349
},
23332350
],
23342351
"relationships": [],
@@ -2344,11 +2361,17 @@ def expected_export_v2_llm_prompt_response_creation():
23442361
{
23452362
"name": "prompt-text",
23462363
"value": "prompt-text",
2347-
"text_answer": {"content": "free form text..."},
2364+
"text_answer": {
2365+
"content": "free form text...",
2366+
"classifications": [],
2367+
},
23482368
},
23492369
{
23502370
"name": "response-text",
2351-
"text_answer": {"content": "free form text..."},
2371+
"text_answer": {
2372+
"content": "free form text...",
2373+
"classifications": [],
2374+
},
23522375
"value": "response-text",
23532376
},
23542377
{
@@ -2390,7 +2413,10 @@ def expected_export_v2_llm_prompt_creation():
23902413
{
23912414
"name": "prompt-text",
23922415
"value": "prompt-text",
2393-
"text_answer": {"content": "free form text..."},
2416+
"text_answer": {
2417+
"content": "free form text...",
2418+
"classifications": [],
2419+
},
23942420
},
23952421
],
23962422
"relationships": [],
@@ -2406,7 +2432,10 @@ def expected_export_v2_llm_response_creation():
24062432
"classifications": [
24072433
{
24082434
"name": "response-text",
2409-
"text_answer": {"content": "free form text..."},
2435+
"text_answer": {
2436+
"content": "free form text...",
2437+
"classifications": [],
2438+
},
24102439
"value": "response-text",
24112440
},
24122441
{
@@ -2518,7 +2547,10 @@ def expected_exports_v2_mmc(mmc_example_data_row_message_ids):
25182547
{
25192548
"name": "text",
25202549
"value": "text",
2521-
"text_answer": {"content": "free form text..."},
2550+
"text_answer": {
2551+
"content": "free form text...",
2552+
"classifications": [],
2553+
},
25222554
},
25232555
{
25242556
"name": "radio_index",

0 commit comments

Comments
 (0)