diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-10-26 00:44:58 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-10-26 00:44:58 +0100 |
| commit | 3e8559df4dfbb0a3f5941e6cc2e2f743a0b65227 (patch) | |
| tree | 92c43a6ec606b45e64b55765d97c7e2576092414 /tests/unit/test_chirp_common.py | |
| parent | efe9dc19bc74423d4375011a2f03a86df41142c4 (diff) | |
| parent | a07fb6c62db75414a4a3b04006f52e0efb0c450c (diff) | |
Update upstream source from tag 'upstream/20241025'
Update to upstream version '20241025'
with Debian dir 5f6ba6e78b35faaf24b3ba57438c60d513d8b6c4
Diffstat (limited to 'tests/unit/test_chirp_common.py')
| -rw-r--r-- | tests/unit/test_chirp_common.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/unit/test_chirp_common.py b/tests/unit/test_chirp_common.py index 458a126..ea3bcf8 100644 --- a/tests/unit/test_chirp_common.py +++ b/tests/unit/test_chirp_common.py @@ -503,6 +503,11 @@ class TestStepFunctions(base.BaseTest): self.assertEqual(2.5, chirp_common.required_step(self._005[0], allowed=[2.5])) + def test_required_step_finds_radio_specific(self): + # Make sure we find a radio-specific step, 10Hz in this case + self.assertEqual(0.01, chirp_common.required_step( + 146000010, allowed=[5.0, 10.0, 0.01, 20.0])) + def test_required_step_fail(self): self.assertRaises(errors.InvalidDataError, chirp_common.required_step, @@ -771,9 +776,6 @@ class TestOverrideRules(base.BaseTest): 'BTECH_MURS-V2', 'Radioddity_DB25-G', 'Retevis_RB17P', - 'Baofeng_UV-17ProGPS', - 'Baofeng_5RM', - 'Baofeng_K5-Plus', ] def _test_radio_override_immutable_policy(self, rclass): |
