edge_orchestrator CI on branch >> 50/merge << #320
32 passed, 35 failed and 0 skipped
❌ edge_orchestrator/reports/pytest/unit-tests-report.xml
67 tests were completed in 4s with 32 passed, 35 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 32✅ | 35❌ | 4s |
❌ pytest
tests.unit_tests.domain.test_supervisor.TestSupervisor
❌ test_2_models_in_parallel
args = ()
✅ test_2_models_in_serie
❌ test_get_prediction_for_camera_should_return_2_predicted_objects_by_one_object_detection_model[camera_id1]
args = ()
❌ test_get_prediction_for_camera_should_return_2_predicted_objects_by_one_object_detection_model[camera_id2]
args = ()
❌ test_get_prediction_for_camera_should_return_2_predicted_objects_by_one_object_detection_model[camera_id3]
args = ()
❌ test_get_prediction_for_camera_should_return_2_predicted_objects_by_one_object_detection_model[camera_id4]
args = ()
❌ test_get_prediction_for_camera_should_return_1_predicted_object_by_one_classification_model[camera_id1]
args = ()
❌ test_get_prediction_for_camera_should_return_1_predicted_object_by_one_classification_model[camera_id2]
args = ()
❌ test_get_prediction_for_camera_should_return_1_predicted_object_by_one_classification_model[camera_id3]
args = ()
❌ test_get_prediction_for_camera_should_return_1_predicted_object_by_one_classification_model[camera_id4]
args = ()
❌ test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_followed_by_classif[camera_id1]
args = ()
❌ test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_followed_by_classif[camera_id2]
args = ()
❌ test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_followed_by_classif[camera_id3]
args = ()
❌ test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_followed_by_classif[camera_id4]
args = ()
❌ test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_with_classif_model[camera_id1]
args = ()
❌ test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_with_classif_model[camera_id2]
args = ()
❌ test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_with_classif_model[camera_id3]
args = ()
❌ test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_with_classif_model[camera_id4]
args = ()
❌ test_get_prediction_for_camera_should_return_1_output_by_model_and_among_them_1_is_classification[camera_id1]
args = ()
❌ test_get_prediction_for_camera_should_return_1_output_by_model_and_among_them_1_is_classification[camera_id2]
args = ()
❌ test_get_prediction_for_camera_should_return_1_output_by_model_and_among_them_1_is_classification[camera_id3]
args = ()
❌ test_get_prediction_for_camera_should_return_1_output_by_model_and_among_them_1_is_classification[camera_id4]
args = ()
❌ test_get_prediction_for_camera_should_return_1_output_by_model_and_among_them_2_are_classification[camera_id1]
args = ()
❌ test_get_prediction_for_camera_should_return_1_output_by_model_and_among_them_2_are_classification[camera_id2]
args = ()
❌ test_get_prediction_for_camera_should_return_1_output_by_model_and_among_them_2_are_classification[camera_id3]
args = ()
❌ test_get_prediction_for_camera_should_return_1_output_by_model_and_among_them_2_are_classification[camera_id4]
args = ()
✅ test_apply_crop_function_with_correct_box_should_resize_the_picture
✅ test_apply_crop_function_with_incorrect_box_should_log_an_error_and_return_the_same_picture
❌ test_set_decision_should_send_final_decision_to_telemetry_sink
self = <test_supervisor.TestSupervisor object at 0x7f50f88eb160>
❌ test_inspect_should_log_information_about_item_processing
args = ()
tests.unit_tests.domain.models.test_edge_station.TestEdgeStation
✅ test_register_cameras_raises_exception_when_no_active_configuration_is_set
✅ test_capture_should_raise_exception_when_cameras_are_not_registered
❌ test_capture_should_instantiate_item_with_1_binary
args = ()
tests.unit_tests.domain.models.test_item.TestItem
✅ test_item_from_nothing_should_instantiate_empty_item_with_serial_number_and_category_hardcoded
tests.unit_tests.domain.models.business_rule.test_camera_business_rules.TestCameraBusinessRule
✅ test_camera_decision_should_return_KO_when_expected_label_is_OK
✅ test_camera_decision_should_return_OK_when_minimum_one_person_is_detected
✅ test_camera_decision_should_return_OK_when_minimum_one_face_is_detected_with_two_object_detection_models
✅ test_camera_decision_should_return_OK_when_minimum_one_connected_cellphone_is_detected_with_one_object_detection_and_one_classification_model
✅ test_camera_decision_should_return_no_decision_without_inference_results
tests.unit_tests.domain.models.business_rule.test_item_business_rules.TestItemBusinessRule
✅ test_item_decision_should_return_decision_ko_when_one_or_more_than_one_camera_decision_is_ko
✅ test_item_decision_should_return_decision_ok_when_more_than_50_pct_of_camera_decisions_are_ok
✅ test_item_decision_should_return_no_decision_ko_with_no_camera_decision
tests.unit_tests.infrastructure.binary_storage.test_filesystem_binary_storage.TestFileSystemBinaryStorage
❌ test_save_item_binaries_should_write_image_on_filesystem
self = <test_filesystem_binary_storage.TestFileSystemBinaryStorage object at 0x7f50f890f5b0>
✅ test_get_item_binary_should_return_requested_item_binary
✅ test_get_item_binaries_should_return_all_item_binaries_names
tests.unit_tests.infrastructure.binary_storage.test_gcp_binary_storage.TestGCPBinaryStorage
✅ test_save_item_binaries_should_write_image_in_gcp
✅ test_get_item_binary_should_return_image
tests.unit_tests.infrastructure.binary_storage.test_memory_binary_storage.TestMemoryBinaryStorage
❌ test_save_item_binaries_should_write_image_in_memory
self = <test_memory_binary_storage.TestMemoryBinaryStorage object at 0x7f50f85d4fd0>
✅ test_get_item_binary_should_return_requested_item_binary
✅ test_get_item_binaries_should_return_all_item_binaries_names
tests.unit_tests.infrastructure.camera.test_fake_camera.TestFakeCamera
✅ test_select_random_image_should_return_random_image_from_input_images_folder
tests.unit_tests.infrastructure.metadata_storage.test_filesystem_metadata_storage.TestFileSystemMetadataStorage
❌ test_save_item_metadata_should_write_metadata_on_filesystem
self = <test_filesystem_metadata_storage.TestFileSystemMetadataStorage object at 0x7f50f85e4730>
✅ test_get_item_metadata_should_return_requested_item_metadata
❌ test_get_item_state_should_return_expected_state
self = <test_filesystem_metadata_storage.TestFileSystemMetadataStorage object at 0x7f50f85e49d0>
✅ test_get_all_items_metadata_should_return_expected_metadata_list
tests.unit_tests.infrastructure.metadata_storage.test_memory_item_storage.TestMemoryItemStorage
❌ test_save_item_metadata_should_write_item_in_memory
args = ()
❌ test_get_item_metadata_should_return_requested_item_metadata
args = ()
❌ test_get_all_items_metadata_should_return_all_items
args = ()
tests.unit_tests.infrastructure.model_forward.test_fake_model_forwarder.TestFakeModelForwarder
✅ test_perform_inference_should_return_classification_results
✅ test_perform_inference_should_return_object_detection_results
✅ test_perform_inference_should_return_object_detection_with_classification_results
tests.unit_tests.infrastructure.model_forward.test_tf_serving_classification_wrapper.TestClassifModelHelper
✅ test_perform_pre_processing_should_return_an_image_as_an_array_with_the_expected_format
✅ test_perform_post_processing_should_transform_the_standard_output_from_the_model_into_the_expected_format
tests.unit_tests.infrastructure.model_forward.test_tf_serving_detection_and_classification_wrapper.TestDetectionClassificationHelper
✅ test_perform_pre_processing_should_return_an_image_as_an_array_with_the_expected_format
✅ test_perform_post_processing_should_transform_the_standard_output_from_the_model_into_the_expected_format
tests.unit_tests.infrastructure.model_forward.test_tf_serving_detection_wrapper.TestDetectionWrapperHelper
✅ test_perform_pre_processing_should_return_an_image_as_an_array_with_the_expected_format
✅ test_perform_post_processing_should_transform_the_standard_output_from_the_model_into_the_expected_format
Annotations
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_2_models_in_parallel
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f85a46a0>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_should_return_2_predicted_objects_by_one_object_detection_model[camera_id1]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f830a250>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_should_return_2_predicted_objects_by_one_object_detection_model[camera_id2]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f8405040>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_should_return_2_predicted_objects_by_one_object_detection_model[camera_id3]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f830aa90>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_should_return_2_predicted_objects_by_one_object_detection_model[camera_id4]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f831c610>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_should_return_1_predicted_object_by_one_classification_model[camera_id1]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f82cb790>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_should_return_1_predicted_object_by_one_classification_model[camera_id2]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f8345700>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_should_return_1_predicted_object_by_one_classification_model[camera_id3]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f82ce3a0>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_should_return_1_predicted_object_by_one_classification_model[camera_id4]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f830aaf0>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_followed_by_classif[camera_id1]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f81ef6d0>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError
Check failure on line 0 in edge_orchestrator/reports/pytest/unit-tests-report.xml
github-actions / Unit tests report in Python 3.8
pytest ► tests.unit_tests.domain.test_supervisor.TestSupervisor ► test_get_prediction_for_camera_returns_2_objects_with_label_for_object_detection_followed_by_classif[camera_id2]
Failed test found in:
edge_orchestrator/reports/pytest/unit-tests-report.xml
Error:
args = ()
Raw output
args = ()
kwargs = {'my_binaries_1': {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x0...00, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}}
time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f50f83337c0>
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
kwargs[self.as_kwarg] = time_factory
result = func(*args, **kwargs)
else:
> result = func(*args, **kwargs)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/freezegun/api.py:809:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
my_cameras_metadata_1 = {'camera_id1': {'brightness': 100, 'exposition': 100, 'position': 'right'}, 'camera_id2': {'brightness': 100, 'exposit...100, 'exposition': 100, 'position': 'top'}, 'camera_id4': {'brightness': 100, 'exposition': 100, 'position': 'bottom'}}
my_binaries_1 = {'camera_id1': b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x03u\x00\x00\x01\xf4\x08\x06\x00\x00\x00\x9a}\x04t\x00\x0...xcb&:\xe3\t\x18\x13\xfe\x06p\xd8\xfa\x0cV\xe8\xb7\xcf\xf39\xf1\xff\x01\x95I\xda%e\xd27H\x00\x00\x00\x00IEND\xaeB`\x82'}
@fixture(scope="function")
@freeze_time(lambda: dt.datetime(year=2021, month=5, day=19, hour=15, minute=0, second=0))
def my_item_1(my_cameras_metadata_1, my_binaries_1):
> return Item(
serial_number="serial_number_test",
category="category_test",
cameras_metadata=my_cameras_metadata_1,
binaries=my_binaries_1,
)
E TypeError: __init__() missing 1 required positional argument: 'dimensions'
tests/fixtures/items.py:23: TypeError