From f64d671fe7fec9d308b24df052629c67439165a6 Mon Sep 17 00:00:00 2001 From: Kaburagi Date: Wed, 14 Jan 2026 03:31:36 +0700 Subject: [PATCH] fix(test): Add "to_dict" to skipped helper methods --- tests/services/base_service_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/services/base_service_test.py b/tests/services/base_service_test.py index 7681496..abc229d 100644 --- a/tests/services/base_service_test.py +++ b/tests/services/base_service_test.py @@ -146,7 +146,7 @@ def test_no_duplicate_methods(self): continue # Skip helper methods - if method_name in ["type", "desc", "operations"]: + if method_name in ["type", "desc", "operations", "to_dict"]: continue method_names.append(method_name) @@ -388,7 +388,7 @@ def test_operator_call_usage(self): implemented_methods = self.get_implemented_methods() # Skip helper methods that don't call operator.call() - helper_methods = ["type", "desc", "operations"] + helper_methods = ["type", "desc", "operations", "to_dict"] errors = [] @@ -447,7 +447,7 @@ def test_no_extra_methods(self): implemented_methods = self.get_implemented_methods() # Allowed helper methods that are not ONVIF operations - allowed_helper_methods = ["type", "desc", "operations"] + allowed_helper_methods = ["type", "desc", "operations", "to_dict"] extra_methods = [] for method_name in implemented_methods.keys(): @@ -482,7 +482,7 @@ def test_parameter_forwarding_for_all_methods(self): implemented_methods = self.get_implemented_methods() # Skip helper methods that don't call operator.call() - helper_methods = ["type", "desc", "operations"] + helper_methods = ["type", "desc", "operations", "to_dict"] errors = []