From 73146355c24008c4cbdfe032d99456dde64b60ce Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sun, 25 May 2025 20:17:20 +0200 Subject: [PATCH] Add checks for constant strings --- bindings/python/test_amp.py | 5 +++++ bindings/python/test_rot.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/bindings/python/test_amp.py b/bindings/python/test_amp.py index 1af6a287a..881c6777e 100755 --- a/bindings/python/test_amp.py +++ b/bindings/python/test_amp.py @@ -19,6 +19,11 @@ class TestClass: amp = Hamlib.Amp(AMP_MODEL) assert amp is not None + assert isinstance(amp.caps.model_name, str) + assert isinstance(amp.caps.mfg_name, str) + assert isinstance(amp.caps.version, str) + assert isinstance(amp.caps.copyright, str) + assert amp.set_conf("", "") is None assert amp.get_conf("") == "" assert amp.get_conf(0) == "" diff --git a/bindings/python/test_rot.py b/bindings/python/test_rot.py index 2d67f7d9b..0cfb14d07 100755 --- a/bindings/python/test_rot.py +++ b/bindings/python/test_rot.py @@ -19,6 +19,11 @@ class TestClass: rot = Hamlib.Rot(ROT_MODEL) assert rot is not None + assert isinstance(rot.caps.model_name, str) + assert isinstance(rot.caps.mfg_name, str) + assert isinstance(rot.caps.version, str) + assert isinstance(rot.caps.copyright, str) + assert rot.set_conf("", "") is None assert rot.get_conf("") == "" assert rot.get_conf(0) == ""