Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/superannotate/lib/app/interface/sdk_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3901,7 +3901,9 @@ def upload_images_to_project(
)

images_to_upload, existing_items = use_case.images_to_upload
logger.info(f"Uploading {len(images_to_upload)} images to project {project.name}.")
logger.info(
f"Uploading {len(images_to_upload)} images to project {project.name}."
)
uploaded, failed_images = [], []
if not images_to_upload:
return uploaded, failed_images, existing_items
Expand Down
1 change: 1 addition & 0 deletions src/superannotate/lib/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def setup_logging(level=DEFAULT_LOGGING_LEVEL, file_path=LOG_FILE_LOCATION):
"ImageAutoAssignEnable",
"TemplateState",
"CategorizeItems",
"MaxIdleDuration",
]

__alL__ = (
Expand Down
38 changes: 38 additions & 0 deletions tests/integration/settings/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,41 @@ def test_frames_reset(self):
break
else:
raise Exception("Test failed")


class TestMMSettings(BaseTestCase):
"""
Require telemetry access
"""

PROJECT_NAME = "TestMMSettings"
SECOND_PROJECT_NAME = "TestMMSettings"
PROJECT_TYPE = "Multimodal"
MULTIMODAL_FORM = {
"components": [
{
"id": "r_qx07c6",
"type": "audio",
"permissions": [],
"hasTooltip": False,
"exclude": False,
"label": "",
"value": "",
}
],
"readme": "",
}

def test_frame_rate(self):
sa.create_project(
self.PROJECT_NAME,
self.PROJECT_DESCRIPTION,
self.PROJECT_TYPE,
settings=[{"attribute": "MaxIdleDuration", "value": 612}],
form=self.MULTIMODAL_FORM,
)
settings = sa.get_project_settings(self.PROJECT_NAME)
for setting in settings:
if setting["attribute"] == "MaxIdleDuration":
assert setting["value"] == 612
break