Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove useless function #114

Merged
merged 5 commits into from
Mar 5, 2025

fix tests for edge_model_serving

9c584e3
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

remove useless function #114

fix tests for edge_model_serving
9c584e3
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit tests report in Python 3.9 succeeded Mar 5, 2025 in 1s

63 passed, 0 failed and 0 skipped

Tests passed successfully

✅ edge_orchestrator/reports/pytest/unit-tests-report.xml

63 tests were completed in 2s with 63 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 63✅ 2s

✅ pytest

tests.unit_tests.application.config.test_config_manager.TestConfigManager
  ✅ test_config_manager_should_load_existing_active_config_from_env_variable_and_log
  ✅ test_config_manager_should_log_warning_with_no_config_dir
  ✅ test_config_manager_should_log_warning_with_no_active_config_found
  ✅ test_config_manager_should_log_exception_with_bad_config_on_disk
  ✅ test_config_manager_should_set_new_config_as_active_config
  ✅ test_config_manager_should_write_active_config_on_disk
  ✅ test_config_manager_should_overwrite_existing_config_with_same_name
tests.unit_tests.domain.models.camera_rule.test_camera_rule_config.TestCameraRuleConfig
  ✅ test_camera_rule_should_raise_exception_without_required_parameters[CameraRuleType.EXPECTED_LABEL_RULE]
  ✅ test_camera_rule_should_raise_exception_without_required_parameters[CameraRuleType.UNEXPECTED_LABEL_RULE]
  ✅ test_camera_rule_should_raise_exception_without_required_parameters[CameraRuleType.MIN_NB_OBJECTS_RULE]
  ✅ test_camera_rule_should_raise_exception_without_required_parameters[CameraRuleType.MAX_NB_OBJECTS_RULE]
  ✅ test_camera_rule_should_raise_exception_with_bad_params[CameraRuleType.EXPECTED_LABEL_RULE]
  ✅ test_camera_rule_should_raise_exception_with_bad_params[CameraRuleType.UNEXPECTED_LABEL_RULE]
  ✅ test_camera_rule_should_raise_exception_with_bad_arguments[CameraRuleType.EXPECTED_LABEL_RULE]
  ✅ test_camera_rule_should_raise_exception_with_bad_arguments[CameraRuleType.UNEXPECTED_LABEL_RULE]
tests.unit_tests.domain.models.model_forwarder.test_model_forwarder_config.TestModelForwarderConfig
  ✅ test_model_fowarder_config_should_raise_exception_of_class_names_path_does_not_exist
tests.unit_tests.infrastructure.adapters.binary_storage.test_binary_storage_factory.TestBinaryStorageFactory
  ✅ test_should_return_the_specified_binary_storage_instance[filesystem-FileSystemBinaryStorage]
  ✅ test_should_return_the_specified_binary_storage_instance[aws-AWSBinaryStorage]
  ✅ test_should_return_the_specified_binary_storage_instance[azure-AzureBinaryStorage]
  ✅ test_should_return_the_specified_binary_storage_instance[gcp-GCPBinaryStorage]
tests.unit_tests.infrastructure.adapters.binary_storage.test_binary_storage_manager.TestBinaryStorageManager
  ✅ test_should_return_expected_binary_storage_and_store_it_as_attribute
tests.unit_tests.infrastructure.adapters.binary_storage.test_filesystem_binary_storage.TestFileSystemBinaryStorage
  ✅ test_save_item_binaries_should_do_nothing_without_binaries
  ✅ test_save_item_binaries_should_write_images_on_filesystem
  ✅ test_save_item_binaries_with_target_directory_should_write_images_on_filesystem
  ✅ test_get_item_binaries_should_return_item_binaries
  ✅ test_get_item_binary_names_should_return_binary_names
  ✅ test_get_item_binary_should_return_requested_binary
tests.unit_tests.infrastructure.adapters.camera.test_camera_factory.TestCameraFactory
  ✅ test_should_return_the_specified_camera_instance[camera_#1-fake-FakeCamera]
  ✅ test_should_return_the_specified_camera_instance[camera_#2-usb-WebcamCamera]
  ✅ test_should_return_the_specified_camera_instance[camera_#3-raspberry-RaspberryPiCamera]
tests.unit_tests.infrastructure.adapters.camera.test_camera_manager.TestCameraManager
  ✅ test_should_create_expected_cameras_and_store_them
  ✅ test_should_raise_exception_without_creating_cameras_first
  ✅ test_should_take_pictures_after_creating_cameras
tests.unit_tests.infrastructure.adapters.camera_rule.test_camera_rule_factory.TestCameraRuleFactory
  ✅ test_should_return_the_specified_camera_rule_instance[CameraRuleType.EXPECTED_LABEL_RULE-ExpectedLabelRule-OK]
  ✅ test_should_return_the_specified_camera_rule_instance[CameraRuleType.UNEXPECTED_LABEL_RULE-UnexpectedLabelRule-KO]
  ✅ test_should_return_the_specified_camera_rule_instance[CameraRuleType.MIN_NB_OBJECTS_RULE-MinNbObjectsRule-1]
  ✅ test_should_return_the_specified_camera_rule_instance[CameraRuleType.MAX_NB_OBJECTS_RULE-MaxNbObjectsRule-2]
tests.unit_tests.infrastructure.adapters.camera_rule.test_camera_rule_manager.TestCameraRuleManager
  ✅ test_camera_rule_manager
tests.unit_tests.infrastructure.adapters.camera_rule.test_expected_label_rule.TestExpectedLabelRule
  ✅ test_expected_label_rule
tests.unit_tests.infrastructure.adapters.camera_rule.test_max_nb_objects_rule.TestMaxNbObjectsRule
  ✅ test_max_nb_objects_rule
tests.unit_tests.infrastructure.adapters.camera_rule.test_min_nb_objects_rule.TestMinNbObjectsRule
  ✅ test_min_nb_objects_rule
tests.unit_tests.infrastructure.adapters.camera_rule.test_unexpected_label_rule.TestUnexpectedLabelRule
  ✅ test_unexpected_label_rule
tests.unit_tests.infrastructure.adapters.item_rule.test_item_rule_factory.TestItemRuleFactory
  ✅ test_should_return_the_specified_item_rule_instance[min_threshold_rule-MinThresholdRule-OK]
  ✅ test_should_return_the_specified_item_rule_instance[min_threshold_ratio_rule-MinThresholdRatioRule-KO]
tests.unit_tests.infrastructure.adapters.item_rule.test_item_rule_manager.TestItemRuleManager
  ✅ test_camera_rule_manager
tests.unit_tests.infrastructure.adapters.item_rule.test_min_threshold_ratio_rule.TestMinThresholdRatioRule
  ✅ test_min_threshold_ratio_rule
tests.unit_tests.infrastructure.adapters.item_rule.test_min_threshold_rule.TestMinThresholdRule
  ✅ test_min_threshold_rule
tests.unit_tests.infrastructure.adapters.metadata_storage.test_filesystem_metadata_storage.TestFileSystemMetadataStorage
  ✅ test_save_item_metadata_with_empty_item_should_write_metadata_on_filesystem
  ✅ test_save_item_metadata_should_write_metadata_on_filesystem
  ✅ test_save_item_metadata_with_target_directory_should_write_metadata_on_filesystem
  ✅ test_get_item_metadata_should_return_requested_item_metadata
  ✅ test_get_all_items_metadata_should_return_requested_metadata
tests.unit_tests.infrastructure.adapters.metadata_storage.test_metadata_storage_factory.TestMetadataStorageFactory
  ✅ test_should_return_the_specified_metadata_storage_instance[filesystem-FileSystemMetadataStorage]
  ✅ test_should_return_the_specified_metadata_storage_instance[aws-AWSMetadataStorage]
  ✅ test_should_return_the_specified_metadata_storage_instance[azure-AzureMetadataStorage]
  ✅ test_should_return_the_specified_metadata_storage_instance[gcp-GCPMetadataStorage]
tests.unit_tests.infrastructure.adapters.metadata_storage.test_metadata_storage_manager.TestMetadataStorageManager
  ✅ test_should_return_expected_metadata_storage_and_store_it_as_attribute
tests.unit_tests.infrastructure.adapters.model_forwarder.test_fake_model_forwarder.TestFakeModelForwarder
  ✅ test_fake_model_forwarder[classification-class_names0]
  ✅ test_fake_model_forwarder[object_detection-class_names1]
tests.unit_tests.infrastructure.adapters.model_forwarder.test_model_forwarder_factory.TestModelForwarderFactory
  ✅ test_create_model_forwarder[fake_model-classification-FakeModelForwarder]
  ✅ test_create_model_forwarder[pin_detection-classification-ClassifModelForwarder]
  ✅ test_create_model_forwarder[mobilenet_ssd_v2_coco-object_detection-ObjectDetectionModelForwarder]
tests.unit_tests.infrastructure.adapters.model_forwarder.test_model_forwarder_manager.TestModelForwarderManager
  ✅ test_predict_on_binaries_should_get_predictions_and_log_warning_and_info