@@ -31,31 +31,14 @@ def test_labels(label_pack):
31
31
assert list (data_row .labels ()) == []
32
32
33
33
34
- < << << << HEAD
34
+
35
35
def test_label_export (configured_project_with_label ):
36
36
project = configured_project_with_label
37
- == == == =
38
- def test_label_export (client , label_pack ):
39
- project , dataset , data_row , label = label_pack
40
- #Project has to be setup for export to be possible
41
- editor = list (
42
- client .get_labeling_frontends (
43
- where = LabelingFrontend .name == "editor" ))[0 ]
44
- empty_ontology = {"tools" : [], "classifications" : []}
45
- project .setup (editor , empty_ontology )
46
- project .create_label (data_row = data_row , label = "export_label" )
47
- > >> >> >> 3 a804592e59222b0aeaf3e9d8d58755be81a32f7
48
37
exported_labels_url = project .export_labels ()
49
38
assert exported_labels_url is not None
50
39
exported_labels = requests .get (exported_labels_url )
51
40
labels = [example ['Label' ] for example in exported_labels .json ()]
52
- < << << << HEAD
53
41
assert labels [0 ]['objects' ][0 ]['value' ] == 'test-bbox-class'
54
- == == == =
55
- #assert 'export_label' in labels
56
- # TODO: Add test for bulk export back.
57
- # The new exporter doesn't work with the create_label mutation
58
- >> >> >> > 3 a804592e59222b0aeaf3e9d8d58755be81a32f7
59
42
60
43
61
44
def test_label_update (label_pack ):
0 commit comments