Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/services/base_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 = []

Expand Down Expand Up @@ -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():
Expand Down Expand Up @@ -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 = []

Expand Down