Skip to content

Commit 818ac8c

Browse files
committed
Fix s3_122 test
1 parent aab6ac3 commit 818ac8c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/superannotate/lib/core/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Metadata(BaseModel):
3232
class BaseInstance(BaseModel):
3333
type: NotEmptyStr
3434
classId: int
35-
groupId: int
35+
groupId: Optional[int]
3636
attributes: List[Attribute]
3737

3838

src/superannotate/lib/core/usecases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3491,7 +3491,7 @@ def execute(self):
34913491
failed_annotations = []
34923492
for _ in range(0, len(self.annotations_to_upload), self.AUTH_DATA_CHUNK_SIZE):
34933493
annotations_to_upload = self.annotations_to_upload[
3494-
_ : _ + self.CHUNK_SIZE # noqa: E203
3494+
_ : _ + self.AUTH_DATA_CHUNK_SIZE # noqa: E203
34953495
]
34963496

34973497
if self._pre_annotation:

tests/integration/test_recursive_folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def test_images_recursive_s3_122(self):
280280
def test_annotations_recursive_s3_122(self):
281281
sa.upload_images_from_folder_to_project(self.PROJECT_NAME, '8sep', from_s3_bucket="superannotate-python-sdk-test",recursive_subfolders=True)
282282
uploaded = sa.upload_annotations_from_folder_to_project(self.PROJECT_NAME, '8sep', from_s3_bucket="superannotate-python-sdk-test",recursive_subfolders=True)
283-
self.assertEqual(len(uploaded[0]),132)
283+
self.assertEqual(len(uploaded[0]),122)
284284

285285

286286
def test_annotations_recursive_s3_10(self):

0 commit comments

Comments
 (0)