diff --git a/bindings/python/generate_tests.py b/bindings/python/generate_tests.py index 0193dde21..068a8346c 100755 --- a/bindings/python/generate_tests.py +++ b/bindings/python/generate_tests.py @@ -61,8 +61,8 @@ import Hamlib ''' filename = f"test_{object_name.replace(".", "_")}_class.py" class_source = inspect.getsource(TestClass) - expected_callables = repr(callables) - expected_properties = repr(properties) + expected_callables = repr(callables).replace(" ", "\n") + expected_properties = repr(properties).replace(" ", "\n") print(f"Generating {filename}") with open(filename, "w", encoding='utf-8') as output_file: