From ede875dfbce4e605a62df859d30eb2e6fd63895e Mon Sep 17 00:00:00 2001 From: Markus Heikkinen Date: Thu, 31 Aug 2023 10:09:02 +0200 Subject: [PATCH] Fix value.py tests --- tests/core/test_value.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/core/test_value.py b/tests/core/test_value.py index 03d2f47..49315a6 100644 --- a/tests/core/test_value.py +++ b/tests/core/test_value.py @@ -55,7 +55,7 @@ def test_value_from_python_types_vector_data_bytes(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.BYTE_ARRAY.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.UINT8.value + assert rval.vectorElementType == value._VectorElementType.UINT8.value assert rval.data == vec @given(arrays(dtype=np.uint8, shape=(1, 2))) @@ -63,7 +63,7 @@ def test_value_from_python_types_vector_data_uint8(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.VECTOR_DATA.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.UINT8.value + assert rval.vectorElementType == value._VectorElementType.UINT8.value assert rval.data == vec.tobytes() @given(arrays(dtype=np.uint16, shape=(1, 2))) @@ -71,7 +71,7 @@ def test_value_from_python_types_vector_data_uint16(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.VECTOR_DATA.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.UINT16.value + assert rval.vectorElementType == value._VectorElementType.UINT16.value assert rval.data == vec.tobytes() @given(arrays(dtype=np.uint32, shape=(1, 2))) @@ -79,7 +79,7 @@ def test_value_from_python_types_vector_data_uint32(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.VECTOR_DATA.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.UINT32.value + assert rval.vectorElementType == value._VectorElementType.UINT32.value assert rval.data == vec.tobytes() @given(arrays(dtype=(np.uint64, int), shape=(1, 2))) @@ -87,7 +87,7 @@ def test_value_from_python_types_vector_data_uint64(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.VECTOR_DATA.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.UINT64.value + assert rval.vectorElementType == value._VectorElementType.UINT64.value assert rval.data == vec.tobytes() @given(arrays(dtype=(float, np.double), shape=(1, 2))) @@ -95,7 +95,7 @@ def test_value_from_python_types_vector_data_double(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.VECTOR_DATA.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.DOUBLE.value + assert rval.vectorElementType == value._VectorElementType.DOUBLE.value assert rval.data == vec.tobytes() @given(arrays(dtype=(np.single), shape=(1, 2))) @@ -103,7 +103,7 @@ def test_value_from_python_types_vector_data_float(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.VECTOR_DATA.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.FLOAT.value + assert rval.vectorElementType == value._VectorElementType.FLOAT.value assert rval.data == vec.tobytes() @given(arrays(dtype=(np.csingle), shape=(1, 2))) @@ -111,7 +111,7 @@ def test_value_from_python_types_vector_data_complex_float(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.VECTOR_DATA.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.COMPLEX_FLOAT.value + assert rval.vectorElementType == value._VectorElementType.COMPLEX_FLOAT.value assert rval.data == vec.tobytes() @given(arrays(dtype=(np.cdouble), shape=(1, 2))) @@ -119,5 +119,5 @@ def test_value_from_python_types_vector_data_complex_double(self, vec): rval = value._value_from_python_types(vec).vectorData assert rval.valueType == value.VectorValueType.VECTOR_DATA.value assert rval.extraHeaderInfo == 0 - assert rval.vectorElementType == value.VectorElementType.COMPLEX_DOUBLE.value + assert rval.vectorElementType == value._VectorElementType.COMPLEX_DOUBLE.value assert rval.data == vec.tobytes()