11# Standard library imports 
2- from  typing  import  Callable ,  cast 
2+ from  typing  import  Callable 
33
44# Third party imports 
55from  src .opengeodeweb_viewer .rpc .mesh .mesh_protocols  import  VtkMeshView 
@@ -20,7 +20,7 @@ def test_points_visibility(
2020
2121    server .call (
2222        VtkMeshPointsView .mesh_points_prefix 
23-         +  cast ( str ,  VtkMeshPointsView .mesh_points_schemas_dict ["visibility" ]["rpc" ]) ,
23+         +  VtkMeshPointsView .mesh_points_schemas_dict ["visibility" ]["rpc" ],
2424        [{"id" : mesh_id , "visibility" : True }],
2525    )
2626    assert  server .compare_image (3 , "mesh/points/visibility.jpeg" ) ==  True 
@@ -34,7 +34,7 @@ def test_points_size(
3434
3535    server .call (
3636        VtkMeshPointsView .mesh_points_prefix 
37-         +  cast ( str ,  VtkMeshPointsView .mesh_points_schemas_dict ["size" ]["rpc" ]) ,
37+         +  VtkMeshPointsView .mesh_points_schemas_dict ["size" ]["rpc" ],
3838        [{"id" : mesh_id , "size" : 15 }],
3939    )
4040    assert  server .compare_image (3 , "mesh/points/size.jpeg" ) ==  True 
@@ -48,7 +48,7 @@ def test_points_color(
4848
4949    server .call (
5050        VtkMeshPointsView .mesh_points_prefix 
51-         +  cast ( str ,  VtkMeshPointsView .mesh_points_schemas_dict ["color" ]["rpc" ]) ,
51+         +  VtkMeshPointsView .mesh_points_schemas_dict ["color" ]["rpc" ],
5252        [{"id" : mesh_id , "color" : {"r" : 255 , "g" : 0 , "b" : 0 }}],
5353    )
5454    assert  server .compare_image (3 , "mesh/points/color.jpeg" ) ==  True 
@@ -61,29 +61,28 @@ def test_points_with_point_set(
6161
6262    dataset_factory (id = mesh_id , viewable_file_name = "points.vtp" )
6363    server .call (
64-         VtkMeshView .mesh_prefix 
65-         +  cast (str , VtkMeshView .mesh_schemas_dict ["register" ]["rpc" ]),
64+         VtkMeshView .mesh_prefix  +  VtkMeshView .mesh_schemas_dict ["register" ]["rpc" ],
6665        [{"id" : mesh_id }],
6766    )
6867    assert  server .compare_image (3 , "mesh/points/register_point_set.jpeg" ) ==  True 
6968
7069    server .call (
7170        VtkMeshPointsView .mesh_points_prefix 
72-         +  cast ( str ,  VtkMeshPointsView .mesh_points_schemas_dict ["size" ]["rpc" ]) ,
71+         +  VtkMeshPointsView .mesh_points_schemas_dict ["size" ]["rpc" ],
7372        [{"id" : mesh_id , "size" : 10 }],
7473    )
7574    assert  server .compare_image (3 , "mesh/points/point_set_size.jpeg" ) ==  True 
7675
7776    server .call (
7877        VtkMeshPointsView .mesh_points_prefix 
79-         +  cast ( str ,  VtkMeshPointsView .mesh_points_schemas_dict ["color" ]["rpc" ]) ,
78+         +  VtkMeshPointsView .mesh_points_schemas_dict ["color" ]["rpc" ],
8079        [{"id" : mesh_id , "color" : {"r" : 255 , "g" : 0 , "b" : 0 }}],
8180    )
8281    assert  server .compare_image (3 , "mesh/points/point_set_color.jpeg" ) ==  True 
8382
8483    server .call (
8584        VtkMeshPointsView .mesh_points_prefix 
86-         +  cast ( str ,  VtkMeshPointsView .mesh_points_schemas_dict ["visibility" ]["rpc" ]) ,
85+         +  VtkMeshPointsView .mesh_points_schemas_dict ["visibility" ]["rpc" ],
8786        [{"id" : mesh_id , "visibility" : False }],
8887    )
8988    assert  server .compare_image (3 , "mesh/points/point_set_visibility.jpeg" ) ==  True 
0 commit comments