11# Standard library imports
2- from typing import Callable
2+ from typing import Callable , cast
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- + VtkMeshPointsView .mesh_points_schemas_dict ["visibility" ]["rpc" ],
23+ + cast ( str , 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- + VtkMeshPointsView .mesh_points_schemas_dict ["size" ]["rpc" ],
37+ + cast ( str , 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- + VtkMeshPointsView .mesh_points_schemas_dict ["color" ]["rpc" ],
51+ + cast ( str , 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,28 +61,29 @@ 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 + VtkMeshView .mesh_schemas_dict ["register" ]["rpc" ],
64+ VtkMeshView .mesh_prefix
65+ + cast (str , VtkMeshView .mesh_schemas_dict ["register" ]["rpc" ]),
6566 [{"id" : mesh_id }],
6667 )
6768 assert server .compare_image (3 , "mesh/points/register_point_set.jpeg" ) == True
6869
6970 server .call (
7071 VtkMeshPointsView .mesh_points_prefix
71- + VtkMeshPointsView .mesh_points_schemas_dict ["size" ]["rpc" ],
72+ + cast ( str , VtkMeshPointsView .mesh_points_schemas_dict ["size" ]["rpc" ]) ,
7273 [{"id" : mesh_id , "size" : 10 }],
7374 )
7475 assert server .compare_image (3 , "mesh/points/point_set_size.jpeg" ) == True
7576
7677 server .call (
7778 VtkMeshPointsView .mesh_points_prefix
78- + VtkMeshPointsView .mesh_points_schemas_dict ["color" ]["rpc" ],
79+ + cast ( str , VtkMeshPointsView .mesh_points_schemas_dict ["color" ]["rpc" ]) ,
7980 [{"id" : mesh_id , "color" : {"r" : 255 , "g" : 0 , "b" : 0 }}],
8081 )
8182 assert server .compare_image (3 , "mesh/points/point_set_color.jpeg" ) == True
8283
8384 server .call (
8485 VtkMeshPointsView .mesh_points_prefix
85- + VtkMeshPointsView .mesh_points_schemas_dict ["visibility" ]["rpc" ],
86+ + cast ( str , VtkMeshPointsView .mesh_points_schemas_dict ["visibility" ]["rpc" ]) ,
8687 [{"id" : mesh_id , "visibility" : False }],
8788 )
8889 assert server .compare_image (3 , "mesh/points/point_set_visibility.jpeg" ) == True
0 commit comments