diff --git a/fiftyone_devicedetection_cloud/tests/test_properties.py b/fiftyone_devicedetection_cloud/tests/test_properties.py index f14d58e7e..a8170a645 100644 --- a/fiftyone_devicedetection_cloud/tests/test_properties.py +++ b/fiftyone_devicedetection_cloud/tests/test_properties.py @@ -147,9 +147,11 @@ def test_value_types(self): if(property in dd_property_dict and property not in exclude_properties): dd_property_value = dd_property_dict[property] - value = dd_property_value.value() - self.assertIsNotNone(dd_property_value, "Property: " + property + " is not present in the results.") - self.assertTrue(is_same_type(value, expected_type), - "Expected type for " + property + " is " + expected_type + - " but actual type is " + get_value_type(value)) + if dd_property_value.has_value(): + value = dd_property_value.value() + self.assertTrue(is_same_type(value, expected_type), + "Expected type for " + property + " is " + expected_type + + " but actual type is " + get_value_type(value)) + else: + self.assertIsNotNone(dd_property_value.no_value_message())