From 46c9e84b740a0b8f3b707274b74ac1e52ee301a6 Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Sun, 3 Mar 2024 10:13:39 -0500 Subject: [PATCH] fix test --- nglview/tests/test_widget.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nglview/tests/test_widget.py b/nglview/tests/test_widget.py index 6116385e..a7ab11b5 100644 --- a/nglview/tests/test_widget.py +++ b/nglview/tests/test_widget.py @@ -238,29 +238,29 @@ class DummWidget(): [view])['methodName'] == 'setSyncCamera' msg = dict(type='request_frame', data=dict()) - view._handle_custom_msg(msg=msg, buffers=[]) + view._handle_nglview_custom_msg(None, msg=msg, buffers=[]) msg = dict(type='repr_parameters', data=dict(name='hello')) - view._handle_custom_msg(msg=msg, buffers=[]) + view._handle_nglview_custom_msg(None, msg=msg, buffers=[]) view.loaded = True msg = dict(type='request_loaded', data=True) - view._handle_custom_msg(msg=msg, buffers=[]) + view._handle_nglview_custom_msg(None, msg=msg, buffers=[]) view.loaded = False msg = dict(type='request_loaded', data=True) - view._handle_custom_msg(msg=msg, buffers=[]) + view._handle_nglview_custom_msg(None, msg=msg, buffers=[]) msg = dict(type='all_reprs_info', data=REPR_DICT) - view._handle_custom_msg(msg=msg, buffers=[]) + view._handle_nglview_custom_msg(None, msg=msg, buffers=[]) msg = dict(type='stage_parameters', data=dict()) - view._handle_custom_msg(msg=msg, buffers=[]) + view._handle_nglview_custom_msg(None, msg=msg, buffers=[]) # test negative frame (it will be set to self.count - 1) view.frame = -1 msg = dict(type='request_frame', data=dict()) # async_message msg = {'type': 'async_message', 'data': 'ok'} - view._handle_custom_msg(msg, []) + view._handle_nglview_custom_msg(None, msg, []) # render_image r = view.render_image() msg = {'type': 'image_data', 'ID': r.model_id, 'data': b'YmxhIGJsYQ=='} - view._handle_custom_msg(msg, []) + view._handle_nglview_custom_msg(None, msg, []) view.loaded = True view.show_only([ 0,