File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/data/annotation_types Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def test_adding_schema_ids():
8989
9090def test_adding_urls (signer ):
9191 label = Label (data = ImageData (arr = np .random .random ((32 , 32 ,
92- 3 )).astype (np .uint8 )),
92+ 3 )).astype (np .uint8 )),
9393 annotations = [])
9494 uuid = str (uuid4 ())
9595 generator = LabelGenerator ([label ]).add_url_to_data (signer (uuid ))
@@ -98,7 +98,7 @@ def test_adding_urls(signer):
9898 assert label .data .url == uuid
9999
100100 label = Label (data = ImageData (arr = np .random .random ((32 , 32 ,
101- 3 )).astype (np .uint8 )),
101+ 3 )).astype (np .uint8 )),
102102 annotations = [])
103103 assert label .data .url != uuid
104104 labels = LabelList ([label ]).add_url_to_data (signer (uuid ))
@@ -110,7 +110,7 @@ def test_adding_urls(signer):
110110def test_adding_to_dataset (signer ):
111111 dataset = FakeDataset ()
112112 label = Label (data = ImageData (arr = np .random .random ((32 , 32 ,
113- 3 )).astype (np .uint8 )),
113+ 3 )).astype (np .uint8 )),
114114 annotations = [])
115115 uuid = str (uuid4 ())
116116 generator = LabelGenerator ([label ]).add_to_dataset (dataset , signer (uuid ))
@@ -123,7 +123,7 @@ def test_adding_to_dataset(signer):
123123
124124 dataset = FakeDataset ()
125125 label = Label (data = ImageData (arr = np .random .random ((32 , 32 ,
126- 3 )).astype (np .uint8 )),
126+ 3 )).astype (np .uint8 )),
127127 annotations = [])
128128 assert label .data .url != uuid
129129 assert label .data .external_id == None
You can’t perform that action at this time.
0 commit comments