File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,9 @@ def reference_id_from_url(url):
160
160
161
161
TEST_CATEGORY_ANNOTATIONS = [
162
162
{
163
- "label" : f"[Pytest] Category Annotation ${ i } " ,
163
+ "label" : f"[Pytest] Category Label ${ i } " ,
164
164
"reference_id" : reference_id_from_url (TEST_IMG_URLS [i ]),
165
- "taxonomy_name" : f "[Pytest] Category Taxonomy{ i } " ,
165
+ "taxonomy_name" : "[Pytest] Category Taxonomy 1 " ,
166
166
}
167
167
for i in range (len (TEST_IMG_URLS ))
168
168
]
Original file line number Diff line number Diff line change @@ -58,6 +58,13 @@ def dataset(CLIENT):
58
58
59
59
response = ds .append (ds_items )
60
60
assert ERROR_PAYLOAD not in response .json ()
61
+
62
+ response = ds .add_taxonomy (
63
+ "[Pytest] Category Taxonomy 1" ,
64
+ "category" ,
65
+ [f"[Pytest] Category Label ${ i } " for i in range ((len (TEST_IMG_URLS )))],
66
+ )
67
+ assert ERROR_PAYLOAD not in response .json ()
61
68
yield ds
62
69
63
70
response = CLIENT .delete_dataset (ds .id )
You can’t perform that action at this time.
0 commit comments