summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-10-26 00:44:58 +0100
committerDave Hibberd <hibby@debian.org>2024-10-26 00:44:58 +0100
commit3e8559df4dfbb0a3f5941e6cc2e2f743a0b65227 (patch)
tree92c43a6ec606b45e64b55765d97c7e2576092414 /tests
parentefe9dc19bc74423d4375011a2f03a86df41142c4 (diff)
parenta07fb6c62db75414a4a3b04006f52e0efb0c450c (diff)
Update upstream source from tag 'upstream/20241025'
Update to upstream version '20241025' with Debian dir 5f6ba6e78b35faaf24b3ba57438c60d513d8b6c4
Diffstat (limited to 'tests')
-rw-r--r--tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pycbin7373 -> 7385 bytes
-rw-r--r--tests/images/Baofeng_BF-F8HP-PRO.imgbin0 -> 34049 bytes
-rw-r--r--tests/images/Retevis_RT98.imgbin0 -> 16057 bytes
-rw-r--r--tests/images/Yaesu_VX-177.imgbin0 -> 6242 bytes
-rw-r--r--tests/py3-untested-drivers.txt1
-rw-r--r--tests/test_edges.py5
-rw-r--r--tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pycbin31415 -> 31643 bytes
-rw-r--r--tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pycbin8715 -> 10108 bytes
-rw-r--r--tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pycbin7345 -> 7151 bytes
-rw-r--r--tests/unit/test_chirp_common.py8
-rw-r--r--tests/unit/test_wxui_radiothread.py12
11 files changed, 12 insertions, 14 deletions
diff --git a/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc
index 9de638f..0c71fa5 100644
--- a/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc
+++ b/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/images/Baofeng_BF-F8HP-PRO.img b/tests/images/Baofeng_BF-F8HP-PRO.img
new file mode 100644
index 0000000..0b8bdd5
--- /dev/null
+++ b/tests/images/Baofeng_BF-F8HP-PRO.img
Binary files differ
diff --git a/tests/images/Retevis_RT98.img b/tests/images/Retevis_RT98.img
new file mode 100644
index 0000000..0937402
--- /dev/null
+++ b/tests/images/Retevis_RT98.img
Binary files differ
diff --git a/tests/images/Yaesu_VX-177.img b/tests/images/Yaesu_VX-177.img
new file mode 100644
index 0000000..05ce641
--- /dev/null
+++ b/tests/images/Yaesu_VX-177.img
Binary files differ
diff --git a/tests/py3-untested-drivers.txt b/tests/py3-untested-drivers.txt
index 2528354..ac576c8 100644
--- a/tests/py3-untested-drivers.txt
+++ b/tests/py3-untested-drivers.txt
@@ -51,4 +51,3 @@ Yaesu_FT-1802M
Yaesu_FT-7100M
Yaesu_FTM-3200D_R
Yaesu_FTM-7250D_R
-Yaesu_VX-170
diff --git a/tests/test_edges.py b/tests/test_edges.py
index 86174ed..b3391c4 100644
--- a/tests/test_edges.py
+++ b/tests/test_edges.py
@@ -72,7 +72,10 @@ class TestCaseEdges(base.DriverTest):
m.tuning_step = step
self.radio.set_memory(m)
n = self.radio.get_memory(m.number)
- self.assertEqualMem(m, n, ignore=['tuning_step'])
+ # Some radios have per-band required modes, which we
+ # don't care about testing here
+ self.assertEqualMem(m, n, ignore=['tuning_step',
+ 'mode'])
def test_empty_to_not(self):
firstband = self.rf.valid_bands[0]
diff --git a/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc
index b00f0d3..cff5622 100644
--- a/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc
+++ b/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc
index 69b0838..3ba6d7a 100644
--- a/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc
+++ b/tests/unit/__pycache__/test_csv.cpython-310-pytest-7.1.3.pyc
Binary files differ
diff --git a/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc
index 898259a..68805b0 100644
--- a/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc
+++ b/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc
Binary files differ
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):
diff --git a/tests/unit/test_wxui_radiothread.py b/tests/unit/test_wxui_radiothread.py
index 0277034..18d08b5 100644
--- a/tests/unit/test_wxui_radiothread.py
+++ b/tests/unit/test_wxui_radiothread.py
@@ -164,15 +164,9 @@ class TestClone(base.BaseTest):
# be visible in the model box.
for rclass in [x for x in directory.DRV_TO_RADIO.values()
if issubclass(x, chirp_common.DetectableInterface)]:
- labels = []
- for child_rclass in rclass.detected_models(include_self=False):
- label = clone.detected_value(rclass, child_rclass)
- self.assertNotEqual('', label)
- labels.append(label)
- if labels:
- label = '%s (+ %s)' % (rclass.MODEL, ','.join(labels))
- self.assertLessEqual(len(label), 32,
- 'Label %r is too long' % label)
+ label = clone.get_model_label(rclass)
+ self.assertLessEqual(len(label), 32,
+ 'Label %r is too long' % label)
class TestException(Exception):