diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-31 12:31:32 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-31 12:31:32 +0000 |
| commit | ef0af95bac2c3d310fe55f54853904395b57f884 (patch) | |
| tree | b8d8d0734308a9c9a1440a2755ce15b480de4bcb /tests/unit/test_ft450d_docs.py | |
| parent | 5f4fe8ab00a12060662e5df0fc8855f0488de35d (diff) | |
New upstream version 20261030upstream/20261030upstream
Diffstat (limited to 'tests/unit/test_ft450d_docs.py')
| -rw-r--r-- | tests/unit/test_ft450d_docs.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/unit/test_ft450d_docs.py b/tests/unit/test_ft450d_docs.py new file mode 100644 index 0000000..266c1a0 --- /dev/null +++ b/tests/unit/test_ft450d_docs.py @@ -0,0 +1,26 @@ +import os + +from chirp.drivers import ft450d +from tests.unit import base # noqa + + +def test_ft450_models_all_settings_have_docs(): + images = os.path.join(os.path.dirname(__file__), "..", "images") + models = ( + (ft450d.FT450DRadio, "Yaesu_FT-450D.img"), + (ft450d.FT450Radio, "Yaesu_FT-450.img"), + ) + + for radio_cls, image in models: + radio = radio_cls(os.path.join(images, image)) + radio.get_features() + settings = list(radio.get_settings().walk()) + settings.extend(radio.get_memory(1).extra.walk()) + + missing = [setting.get_name() for setting in settings + if not setting.__doc__] + att = next(setting for setting in settings + if setting.get_name() == "att") + + assert not missing, radio_cls.MODEL + assert "20 dB" in att.__doc__ |
