Add missing Icom IC-E90 test image

This also fixes the detect test, which fails to consider sub devices
as subclasses of the original rclass of a dynamic alias.

We probably need to not use the dynamic alias nonsense for actual
non-alias matches.

Related to #10304
This commit is contained in:
Dan Smith 2023-01-23 19:01:57 -08:00 committed by Dan Smith
parent 48a21c9835
commit bc7d1df77b
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -11,6 +11,8 @@ from tests import base
class TestCaseDetect(base.DriverTest):
def test_detect(self):
radio = directory.get_radio_by_image(self.TEST_IMAGE)
if hasattr(radio, '_orig_rclass'):
radio = radio._orig_rclass(self.TEST_IMAGE)
if isinstance(self.radio, radio.__class__):
# If we are a sub-device of the detected class then that's fine.
# There's no good way for us to know that other than checking, so
@ -20,7 +22,7 @@ class TestCaseDetect(base.DriverTest):
self.assertIsInstance(radio, self.RADIO_CLASS,
"Image %s detected as %s but expected %s" % (
self.TEST_IMAGE,
radio._orig_rclass, self.RADIO_CLASS))
radio.__class__, self.RADIO_CLASS))
@pytest.mark.skipif(sys.version_info < (3, 10),
reason="requires python3.10 or higher")