@@ -144,7 +144,6 @@ def test_attach_instructions(client, project):
144
144
assert str (
145
145
execinfo .value
146
146
) == "Cannot attach instructions to a project that has not been set up."
147
-
148
147
editor = list (
149
148
client .get_labeling_frontends (
150
149
where = LabelingFrontend .name == "editor" ))[0 ]
@@ -218,7 +217,7 @@ def test_create_batch_with_global_keys_sync(project: Project, data_rows):
218
217
global_keys = [dr .global_key for dr in data_rows ]
219
218
batch_name = f'batch { uuid .uuid4 ()} '
220
219
batch = project .create_batch (batch_name , global_keys = global_keys )
221
-
220
+
222
221
assert batch .size == len (set (data_rows ))
223
222
224
223
@@ -227,7 +226,7 @@ def test_create_batch_with_global_keys_async(project: Project, data_rows):
227
226
global_keys = [dr .global_key for dr in data_rows ]
228
227
batch_name = f'batch { uuid .uuid4 ()} '
229
228
batch = project ._create_batch_async (batch_name , global_keys = global_keys )
230
-
229
+
231
230
assert batch .size == len (set (data_rows ))
232
231
233
232
@@ -245,8 +244,7 @@ def test_media_type(client, project: Project, rand_gen):
245
244
# Exclude LLM media types for now, as they are not supported
246
245
if MediaType [media_type ] in [
247
246
MediaType .LLMPromptCreation ,
248
- MediaType .LLMPromptResponseCreation ,
249
- MediaType .LLM
247
+ MediaType .LLMPromptResponseCreation , MediaType .LLM
250
248
]:
251
249
continue
252
250
@@ -284,7 +282,8 @@ def test_label_count(client, configured_batch_project_with_label):
284
282
285
283
def test_clone (client , project , rand_gen ):
286
284
# cannot clone unknown project media type
287
- project = client .create_project (name = rand_gen (str ), media_type = MediaType .Image )
285
+ project = client .create_project (name = rand_gen (str ),
286
+ media_type = MediaType .Image )
288
287
cloned_project = project .clone ()
289
288
290
289
assert cloned_project .description == project .description
@@ -295,4 +294,4 @@ def test_clone(client, project, rand_gen):
295
294
assert cloned_project .get_label_count () == 0
296
295
297
296
project .delete ()
298
- cloned_project .delete ()
297
+ cloned_project .delete ()
0 commit comments