Skip to content

Commit 956b59d

Browse files
fix class props
1 parent 4872014 commit 956b59d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def reset(self, params):
144144

145145
@exportRpc(prefix + schemas_dict["get_mouse"]["rpc"])
146146
def getMouse(self, params):
147-
print(schemas_dict["get_mouse"]["rpc"], params, flush=True)
148-
validate_schema(params, schemas_dict["get_mouse"])
147+
print(self.schemas_dict["get_mouse"]["rpc"], f"{params=}", flush=True)
148+
validate_schema(params, self.schemas_dict["get_mouse"])
149149
x = params["x"]
150150
y = params["y"]
151151
return {"x": x, "y": y}

src/tests/test_viewer_protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_take_screenshot(server):
109109

110110
def test_get_mouse(server):
111111
server.call(
112-
class_.prefix + class_.schemas_dict["get_mouse"]["rpc"], [{"x": 100, "y": 200}]
112+
VtkViewerView.prefix + VtkViewerView.schemas_dict["get_mouse"]["rpc"], [{"x": 100, "y": 200}]
113113
)
114114
response = server.get_response()
115115
assert "x" in response["result"]

0 commit comments

Comments
 (0)