kopia lustrzana https://github.com/Hamlib/Hamlib
Add checks for constant strings
rodzic
1c5bdce775
commit
73146355c2
|
@ -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) == ""
|
||||
|
|
|
@ -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) == ""
|
||||
|
|
Ładowanie…
Reference in New Issue