3232def test_constant_attribute (manager ):
3333
3434 constant_attribute_id = manager .create_attribute_constant_bool (
35- "bool" , True )
35+ "bool" , True , basic . AttributeProperties () )
3636 constant_attribute = manager .find_attribute_constant_bool (constant_attribute_id )
37- attribute = manager .read_attribute_bool (constant_attribute_id )
37+ attribute = manager .find_read_only_attribute_bool (constant_attribute_id )
3838 if not attribute .value (0 ):
3939 raise ValueError ("[Test] Should be equal to True" )
4040
@@ -46,7 +46,7 @@ def test_constant_attribute(manager):
4646
4747def test_int_variable_attribute (manager ):
4848 variable_attribute_id = manager .create_attribute_variable_int (
49- "int" , 12 )
49+ "int" , 12 , basic . AttributeProperties () )
5050 variable_attribute = manager .find_attribute_variable_int (variable_attribute_id )
5151 variable_attribute .set_value (3 , 3 )
5252 if not variable_attribute .is_genericable ():
@@ -56,48 +56,48 @@ def test_int_variable_attribute(manager):
5656 if not variable_attribute .properties ().assignable or not variable_attribute .properties ().interpolable :
5757 raise ValueError ("[Test] Should be assignable and interpolable" )
5858
59- read_attribute = manager .read_attribute_int (variable_attribute_id )
59+ find_read_only_attribute = manager .find_read_only_attribute_int (variable_attribute_id )
6060 if variable_attribute .value (3 ) != 3 :
6161 raise ValueError ("[Test] Should be equal to 3" )
6262 if variable_attribute .value (6 ) != 12 :
6363 raise ValueError ("[Test] Should be equal to 12" )
64- if read_attribute .value (3 ) != 3 :
64+ if find_read_only_attribute .value (3 ) != 3 :
6565 raise ValueError ("[Test] Should be equal to 3" )
66- if read_attribute .value (6 ) != 12 :
66+ if find_read_only_attribute .value (6 ) != 12 :
6767 raise ValueError ("[Test] Should be equal to 12" )
6868
6969 variable_attribute .set_value (3 , 5 )
7070 if variable_attribute .value (3 ) != 5 :
7171 raise ValueError ("[Test] Should be equal to 5" )
72- if read_attribute .value (3 ) != 5 :
72+ if find_read_only_attribute .value (3 ) != 5 :
7373 raise ValueError ("[Test] Should be equal to 5" )
7474
7575
7676def test_double_sparse_attribute (manager ):
7777 sparse_attribute_id = manager .create_attribute_sparse_double (
78- "double" , 12 )
78+ "double" , 12 , basic . AttributeProperties () )
7979 attribute = manager .find_attribute_sparse_double (sparse_attribute_id )
8080 attribute .set_value (3 , 3 )
8181 attribute .set_value (7 , 7 )
8282
83- read_attribute = manager .read_attribute_double (sparse_attribute_id )
83+ find_read_only_attribute = manager .find_read_only_attribute_double (sparse_attribute_id )
8484 if attribute .value (3 ) != 3 :
8585 raise ValueError ("[Test] Should be equal to 3" )
8686 if attribute .value (6 ) != 12 :
8787 raise ValueError ("[Test] Should be equal to 12" )
8888 if attribute .value (7 ) != 7 :
8989 raise ValueError ("[Test] Should be equal to 7" )
90- if read_attribute .value (3 ) != 3 :
90+ if find_read_only_attribute .value (3 ) != 3 :
9191 raise ValueError ("[Test] Should be equal to 3" )
92- if read_attribute .value (6 ) != 12 :
92+ if find_read_only_attribute .value (6 ) != 12 :
9393 raise ValueError ("[Test] Should be equal to 12" )
94- if read_attribute .value (7 ) != 7 :
94+ if find_read_only_attribute .value (7 ) != 7 :
9595 raise ValueError ("[Test] Should be equal to 7" )
9696
9797 attribute .set_value (3 , 5 )
9898 if attribute .value (3 ) != 5 :
9999 raise ValueError ("[Test] Should be equal to 5" )
100- if read_attribute .value (3 ) != 5 :
100+ if find_read_only_attribute .value (3 ) != 5 :
101101 raise ValueError ("[Test] Should be equal to 5" )
102102 return sparse_attribute_id
103103
@@ -119,7 +119,7 @@ def test_delete_attribute_elements(manager):
119119
120120
121121def test_sparse_attribute_after_element_deletion (manager , double_attribute_id ):
122- sparse_attribute = manager .read_attribute_double (double_attribute_id )
122+ sparse_attribute = manager .find_read_only_attribute_double (double_attribute_id )
123123 if sparse_attribute .value (0 ) != 12 :
124124 raise ValueError ("Element 0 of sparse attribute should be 12 " )
125125 if sparse_attribute .value (5 ) != 7 :
0 commit comments