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():
89
89
90
90
def test_adding_urls (signer ):
91
91
label = Label (data = ImageData (arr = np .random .random ((32 , 32 ,
92
- 3 )).astype (np .uint8 )),
92
+ 3 )).astype (np .uint8 )),
93
93
annotations = [])
94
94
uuid = str (uuid4 ())
95
95
generator = LabelGenerator ([label ]).add_url_to_data (signer (uuid ))
@@ -98,7 +98,7 @@ def test_adding_urls(signer):
98
98
assert label .data .url == uuid
99
99
100
100
label = Label (data = ImageData (arr = np .random .random ((32 , 32 ,
101
- 3 )).astype (np .uint8 )),
101
+ 3 )).astype (np .uint8 )),
102
102
annotations = [])
103
103
assert label .data .url != uuid
104
104
labels = LabelList ([label ]).add_url_to_data (signer (uuid ))
@@ -110,7 +110,7 @@ def test_adding_urls(signer):
110
110
def test_adding_to_dataset (signer ):
111
111
dataset = FakeDataset ()
112
112
label = Label (data = ImageData (arr = np .random .random ((32 , 32 ,
113
- 3 )).astype (np .uint8 )),
113
+ 3 )).astype (np .uint8 )),
114
114
annotations = [])
115
115
uuid = str (uuid4 ())
116
116
generator = LabelGenerator ([label ]).add_to_dataset (dataset , signer (uuid ))
@@ -123,7 +123,7 @@ def test_adding_to_dataset(signer):
123
123
124
124
dataset = FakeDataset ()
125
125
label = Label (data = ImageData (arr = np .random .random ((32 , 32 ,
126
- 3 )).astype (np .uint8 )),
126
+ 3 )).astype (np .uint8 )),
127
127
annotations = [])
128
128
assert label .data .url != uuid
129
129
assert label .data .external_id == None
You can’t perform that action at this time.
0 commit comments